diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 1de8a6687..c893efaff 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,9 +14,7 @@ jobs: runs-on: charon-ci steps: # Config options can be found in README here: https://github.com/golangci/golangci-lint-action - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 0341c4572..d7e2cbcb1 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -12,8 +12,6 @@ jobs: security-events: write steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.0 - run: govulncheck -show=traces -test ./... diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 182ead852..d96706978 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -9,9 +9,7 @@ jobs: runs-on: charon-ci steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - uses: actions/cache@v3 with: path: | @@ -32,9 +30,7 @@ jobs: - uses: docker/setup-buildx-action@v2 # For compose to build images with: driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - uses: actions/cache@v3 with: path: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6cb73ca3..8c4a36c4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 # Disable shallow checkout - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - run: go run . --help > cli-reference.txt - run: go run testutil/genchangelog/main.go - uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76056b09b..3e8234a34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,7 @@ jobs: runs-on: charon-ci steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - uses: actions/cache@v3 with: path: | @@ -34,9 +32,7 @@ jobs: - unit_tests steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - uses: actions/cache@v3 with: path: | @@ -61,9 +57,7 @@ jobs: - uses: docker/setup-buildx-action@v2 # For compose to build images with: driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - uses: actions/cache@v3 with: path: | diff --git a/.github/workflows/verify-pr.yml b/.github/workflows/verify-pr.yml index d3b75de10..ed29e8291 100644 --- a/.github/workflows/verify-pr.yml +++ b/.github/workflows/verify-pr.yml @@ -10,9 +10,7 @@ jobs: GITHUB_PR: ${{ toJSON(github.event.pull_request) }} steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.22.4' + - uses: ./.github/actions/setup-go - name: "Verify PR" run: go run github.com/obolnetwork/charon/testutil/verifypr