This repository was archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (54 loc) · 1.43 KB
/
ci.yaml
File metadata and controls
59 lines (54 loc) · 1.43 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: quarks-utils-ci
on: [push]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15.6
uses: actions/setup-go@v2
with:
go-version: 1.15.6
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
go install github.com/onsi/ginkgo/ginkgo
go get -u golang.org/x/lint/golint
go get honnef.co/go/tools/cmd/staticcheck
- name: Run lint
run: bin/lint
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15.6
uses: actions/setup-go@v2
with:
go-version: 1.15.6
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
go install github.com/onsi/ginkgo/ginkgo
go get github.com/mattn/goveralls
go get github.com/modocache/gover
- name: Run unit tests
run: |
bin/test-unit
bin/coverage
env:
COVERAGE: true
GOPROXY: "https://proxy.golang.org"
- uses: actions/upload-artifact@master
with:
name: coverage-files
path: ./code-coverage