Merge pull request #1740 from zhaque44/cache-test-updates #2683
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: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| - 'release/**' | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release/**' | |
| permissions: | |
| contents: read # for actions/checkout to fetch code | |
| jobs: | |
| test-linux-amd64: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
| with: | |
| go-version: 1.23.x | |
| cache-dependency-path: | | |
| **/go.sum | |
| **/go.mod | |
| - name: Run tests | |
| env: | |
| SKIP_COSIGN_VERIFICATION: true | |
| TEST_AZURE_ACCOUNT_NAME: ${{ secrets.TEST_AZURE_ACCOUNT_NAME }} | |
| TEST_AZURE_ACCOUNT_KEY: ${{ secrets.TEST_AZURE_ACCOUNT_KEY }} | |
| run: make test | |
| test-linux-arm64: | |
| runs-on: | |
| group: "ARM64" | |
| if: github.actor != 'dependabot[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
| with: | |
| go-version: 1.23.x | |
| cache-dependency-path: | | |
| **/go.sum | |
| **/go.mod | |
| - name: Run tests | |
| env: | |
| SKIP_COSIGN_VERIFICATION: true | |
| TEST_AZURE_ACCOUNT_NAME: ${{ secrets.TEST_AZURE_ACCOUNT_NAME }} | |
| TEST_AZURE_ACCOUNT_KEY: ${{ secrets.TEST_AZURE_ACCOUNT_KEY }} | |
| run: make test |