Skip to content

Commit

Permalink
ci: install Go from its in-code version
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Mar 1, 2024
1 parent 94db4bf commit 590d3bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ jobs:
access_token: ${{ github.token }}

tests:
strategy:
matrix:
go-version: [1.x, 1.21.x]
platform: [ubuntu-latest]
include:
- go-version: 1.x
platform: ubuntu-latest
update-coverage: true
runs-on: ${{ matrix.platform }}
needs: [setup]
steps:
Expand All @@ -32,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version-file: go.mod

- name: Cache go modules
uses: actions/cache@v4
Expand All @@ -45,7 +37,6 @@ jobs:
run: make tests

- name: Upload coverage to Coveralls
if: ${{ matrix.update-coverage }}
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.txt
Expand All @@ -57,7 +48,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version-file: go.mod

- name: go-lint
uses: golangci/golangci-lint-action@v4
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.21.0'
go-version-file: go.mod

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: "1.21"
check-latest: true
go-version-file: go.mod
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
Expand Down

0 comments on commit 590d3bd

Please sign in to comment.