forked from adrianmo/go-nmea
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 972 Bytes
/
ci.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
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.22.7']
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
run: |
go install golang.org/x/lint/golint@latest
go install github.com/mattn/[email protected]
- name: Lint
run: |
go vet ./...
golint -set_exit_status ./...
- name: Test
run: |
go test -v -race -covermode=atomic -coverprofile=profile.cov ./...
- name: Coverage
run: |
goveralls -coverprofile=profile.cov -service=github -parallel -flagname="go-${{ matrix.go }}"
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}