Merge pull request #583 from fluxcd/dependabot/github_actions/ci-38f6… #1313
This file contains 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: build | |
on: | |
pull_request: | |
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: 1.20.x | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Run tests | |
run: make test | |
- name: Verify | |
run: make verify | |
kind-linux-arm64: | |
# Hosted on Equinix | |
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners | |
runs-on: [self-hosted, Linux, ARM64, equinix] | |
steps: | |
- name: checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: 1.20.x | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Run tests | |
run: make test | |
env: | |
# Temporarily disabling -race for arm64 as our GitHub action | |
# runners don't seem to like it. | |
# | |
# We should reenable go test -race for arm64 runners once the | |
# current issue is resolved. | |
GO_TEST_ARGS: "" | |
SKIP_COSIGN_VERIFICATION: true | |
- name: Verify | |
run: make verify |