add username and password auth method #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: pull_request | |
jobs: | |
kubernetes: | |
name: Kubernetes | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
deployment: | |
- kubernetes-sharedclient | |
- kubernetes-nosharedclient | |
- kubernetes-namespaced | |
- approle-env-vars | |
- approle-no-env-vars | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Vault | |
run: | | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - | |
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | |
sudo apt-get update && sudo apt-get install vault | |
- name: Setup kind Cluster | |
run: ./hack/setup-kind.sh | |
- name: Run Test | |
run: ./hack/setup-kind-${{ matrix.deployment }}.sh | |
env: | |
VAULT_ADDR: http://127.0.0.1:8200 | |
- name: Show Pod Status and Logs | |
if: ${{ always() }} | |
run: | | |
kubectl get pods --namespace vault | |
kubectl logs --namespace=vault vault-0 | |
kubectl get pods --namespace vault-secrets-operator | |
kubectl logs --namespace=vault-secrets-operator -l app.kubernetes.io/instance=vault-secrets-operator | |
go: | |
name: Go | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
cache-dependency-path: go.sum | |
- name: Download Dependencies | |
run: | | |
go mod download | |
- name: Test | |
run: | | |
make test | |
- name: Build | |
run: | | |
make build |