Skip to content

Add go versions 1.19 1.20 1.21 1.22 #95

Add go versions 1.19 1.20 1.21 1.22

Add go versions 1.19 1.20 1.21 1.22 #95

Workflow file for this run

name: tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Build
run: go build -v ./...
- name: Run tests
run: go test -race -covermode=atomic -coverprofile=covprofile -v ./...
- name: Update coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -ignore=apns2/main.go -coverprofile=covprofile -service=github