Skip to content

add Go 1.23 to the build matrix #203

add Go 1.23 to the build matrix

add Go 1.23 to the build matrix #203

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
go:
- "stable"
- "1.23"
- "1.22"
- "1.21"
- "1.20"
- "1.19"
- "1.18"
- "1.17"
arch:
- amd64 # int has 64bit
- "386" # int has 32bit
steps:
- name: Prepare git
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
shell: bash
run: go test -v -coverprofile=profile.cov ./...
env:
GOARCH: ${{ matrix.arch }}
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go }}-${{ matrix.os }}
parallel: true
# notifies that all test jobs are finished.
finish:
if: always()
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
compile-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "stable"
- run: |
./.github/compile_check.sh