Skip to content

Commit

Permalink
Change all other workflows to use composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed Jun 5, 2024
1 parent 5b76f98 commit ab3882b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 27 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
8 changes: 2 additions & 6 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ab3882b

Please sign in to comment.