Automate the smoke test #557
Workflow file for this run
This file contains hidden or 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: tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: {} | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/repo_access | |
| with: | |
| DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB: ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }} | |
| - id: go-version | |
| run: | | |
| make print-go-version >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ steps.go-version.outputs.result }} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: _bin/downloaded | |
| key: downloaded-${{ runner.os }}-${{ hashFiles('klone.yaml') }}-verify | |
| - run: make -j verify | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read # needed for checkout | |
| id-token: write # needed for google auth | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/repo_access | |
| with: | |
| DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB: ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }} | |
| - id: go-version | |
| run: | | |
| make print-go-version >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ steps.go-version.outputs.result }} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: _bin/downloaded | |
| key: downloaded-${{ runner.os }}-${{ hashFiles('klone.yaml') }}-test-unit | |
| - run: make -j test-unit test-helm | |
| test-e2e: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: 'read' | |
| id-token: 'write' # This is required for OIDC authentication | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/repo_access | |
| with: | |
| DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB: ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }} | |
| - name: Authenticate to Google Cloud | |
| id: auth | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| workload_identity_provider: 'projects/1034149387603/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider' | |
| service_account: 'gke-cluster-creation@machineidentitysecurity-jsci-e.iam.gserviceaccount.com' | |
| - name: Set up gcloud CLI | |
| uses: google-github-actions/setup-gcloud@v2 | |
| - id: go-version | |
| run: | | |
| make print-go-version >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ steps.go-version.outputs.result }} | |
| - run: make -j test-e2e-gke | |
| env: | |
| VEN_API_KEY: ${} # ven-tlspk.venafi.cloud | |
| VEN_API_KEY_PULL: ${secrets.VEN_API_KEY_PULL} | |
| OCI_BASE: ttl.sh/veanfi-kubernetes-agent | |
| VEN_API_HOST: api.venafi.cloud | |
| VEN_ZONE: tlspk-bench\Default | |
| VEN_VCP_REGION: us | |
| CLOUDSDK_CORE_PROJECT: machineidentitysecurity-jsci-e | |
| CLOUDSDK_COMPUTE_ZONE: europe-west1-b | |
| CLUSTER_NAME: test-secretless |