Skip to content

Commit

Permalink
Use separate job for go test 1.20.x
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Kartago Lamida <me@lamida.net>
  • Loading branch information
lamida committed May 15, 2024
1 parent b1af1cf commit 11af660
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,14 @@ concurrency:

jobs:
test-build:
name: Build and test on Go ${{ matrix.go-version }}
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.20.x', '1.21.x']
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
go-version: '1.21.x'
- name: Go mod check
run: make mod-check
- name: Lint
Expand All @@ -40,3 +35,15 @@ jobs:
apt-get update && apt-get -y install unzip
go mod vendor
make check-protos
test-build-go1-20:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20.x'
- name: Test
run: make test

0 comments on commit 11af660

Please sign in to comment.