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
  • Loading branch information
jnsgruk committed Aug 2, 2023
1 parent 6ff6958 commit 14df9a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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
17 changes: 8 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ jobs:

strategy:
fail-fast: false
matrix:
go: ['1.20']

name: Go unit tests

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-file: 'go.mod'
go-version: ${{ matrix.go }}

- name: Test and build
run: |
Expand All @@ -32,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 @@ -55,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 14df9a7

Please sign in to comment.