Upgrade makefile-modules to pick up the latest base image #1232
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] | |
| # Deliberately the default activity types. The label-triggered e2e suites | |
| # live in e2e.yaml, so that adding a label cannot replace the check runs | |
| # these jobs publish. | |
| pull_request: {} | |
| workflow_dispatch: {} | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| # Adding `fetch-depth: 0` makes sure tags are also fetched. We need | |
| # the tags so `git describe` returns a valid version. | |
| # see https://github.com/actions/checkout/issues/701 for extra info about this option | |
| 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@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version: ${{ steps.go-version.outputs.result }} | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| # Adding `fetch-depth: 0` makes sure tags are also fetched. We need | |
| # the tags so `git describe` returns a valid version. | |
| # see https://github.com/actions/checkout/issues/701 for extra info about this option | |
| 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@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version: ${{ steps.go-version.outputs.result }} | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: _bin/downloaded | |
| key: downloaded-${{ runner.os }}-${{ hashFiles('klone.yaml') }}-test-unit | |
| # NB: helm unit tests will be run by "make verify", so we don't run it here | |
| - run: make -j test-unit | |
| env: | |
| # These environment variables are required to run the CyberArk client integration tests | |
| ARK_DISCOVERY_API: https://platform-discovery.integration-cyberark.cloud/ | |
| ARK_SUBDOMAIN: ${{ secrets.ARK_SUBDOMAIN }} | |
| ARK_USERNAME: ${{ secrets.ARK_USERNAME }} | |
| ARK_SECRET: ${{ secrets.ARK_SECRET }} |