Merge pull request #1864 from fluxcd/refactor-pkg #2977
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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: 1.24.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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: 1.24.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 |