-
Notifications
You must be signed in to change notification settings - Fork 139
33 lines (33 loc) · 1.16 KB
/
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
name: tests
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 1
path: go/src/github.com/rodrigo-brito/gocity
- name: GolangCI-Lint
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.31.0
./bin/golangci-lint run
env:
GOPATH: /home/runner/work/gocity/go
- name: Test
run: |
go test -race -cover -coverprofile=coverage.txt -covermode=atomic ./...
env:
GOPATH: /home/runner/work/gocity/go
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.13
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella