-
-
Notifications
You must be signed in to change notification settings - Fork 16
27 lines (25 loc) · 668 Bytes
/
test.yml
File metadata and controls
27 lines (25 loc) · 668 Bytes
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
name: "Run Tests and Lint Code"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Run Tests and Lint Code
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.24"
- run: go test -coverprofile=coverage.out -timeout=1m ./...
- run: go tool gcov2lcov -infile=coverage.out -outfile=coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov