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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Setup Go uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' 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: # Hosted on Equinix # Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners runs-on: [self-hosted, Linux, ARM64, equinix] if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' steps: - name: Checkout uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Setup Go uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' 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 }} # Temporarily disabling -race for arm64 as our GitHub action # runners don't seem to like it. The race detection was tested # on both Apple M1 and Linux arm64 with successful results. # # We should reenable go test -race for arm64 runners once the # current issue is resolved. GO_TEST_ARGS: '' run: make test