-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.31 KB
/
test.yaml
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
name: tests
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
### ASDF Logic
- name: Setup asdf
uses: asdf-vm/actions/setup@v1
- name: Install asdf plugins
uses: asdf-vm/actions/plugins-add@v1
- name: Install asdf languages
uses: asdf-vm/actions/install@v1
### END
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.51.1
- name: lintroller
run: go run github.com/getoutreach/lintroller/cmd/[email protected] -config lintroller.yaml ./...
test:
name: go test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
### ASDF Logic
- name: Setup asdf
uses: asdf-vm/actions/setup@v1
- name: Install asdf plugins
uses: asdf-vm/actions/plugins-add@v1
- name: Install asdf languages
uses: asdf-vm/actions/install@v1
### END
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TOKEN }}
with:
coverageCommand: make test
coverageLocations: c.out:gocov
prefix: github.com/boatkit-io/tugboat