Skip to content

Commit

Permalink
Update Go Action
Browse files Browse the repository at this point in the history
* Bump action versions
* Build for different go versions
* Upload test results

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt committed May 18, 2024
1 parent df4f217 commit 2687813
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,27 @@ jobs:

build:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [ '1.18', '1.21', '1.22.x' ]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: go build -v ./...

- name: Build
run: go build -v ./...
- name: Test
run: go test -json ./... > TestResults-${{ matrix.go-version }}.json

- name: Test
run: go test -v ./...
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json

0 comments on commit 2687813

Please sign in to comment.