Skip to content

chore: update go versions #345

chore: update go versions

chore: update go versions #345

name: build and test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.22'
- '1.23'
- '1.24'
name: run tests with go version ${{ matrix.go }}
steps:
- name: install go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: checkout code
uses: actions/checkout@v4
- name: Build
run: make build
- name: Test
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
make cover
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
flag-name: Go-${{ matrix.go }}
parallel: true
- name: Upload coverage
if: (matrix.go == '1.23')
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.*
- name: Assert no changes
run: make assert-no-changes
# notifies that all test jobs are finished.
finish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true