Skip to content

Commit

Permalink
ci: fetch then install Go
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jul 26, 2024
1 parent eb82b2c commit 2c3c8eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
- name: Test
run: go test ./... -coverprofile coverage.out
- name: Report coverage
Expand All @@ -35,12 +33,10 @@ jobs:
env:
GOCOVERDIR: ${{ github.workspace }}/_icoverdir_
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
- name: Prepare lefthook
run: |
mkdir _icoverdir_
Expand All @@ -65,12 +61,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
- name: Build binaries
uses: goreleaser/goreleaser-action@v6
with:
Expand Down

0 comments on commit 2c3c8eb

Please sign in to comment.