forked from sideshow/apns2
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 838 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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