Skip to content

Commit

Permalink
ci: run unit tests on go 1.20 only; build using version from go.mod
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Seager <[email protected]>
  • Loading branch information
barrettj12 and jnsgruk committed Aug 2, 2023
1 parent 6991b3c commit 0906a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable # latest stable version of Go
go-version-file: "go.mod"

- name: Build binary and create archive
id: build
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ['1.20', '1.19', '1.18', '1.17']
go: ['1.20']

name: Go ${{ matrix.go }}

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

Expand All @@ -34,14 +33,13 @@ jobs:
runs-on: ubuntu-latest

name: Root Tests

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
go-version: ${{ matrix.go }}

- name: Test
run: |
Expand All @@ -57,12 +55,11 @@ jobs:
runs-on: ubuntu-latest

name: Format check

steps:
- uses: actions/checkout@v3

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

Expand Down

0 comments on commit 0906a62

Please sign in to comment.