-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (43 loc) · 1.15 KB
/
go-main.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
name: go-main
on:
push:
branches:
- wip
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Linter
uses: docker://reviewdog/action-golangci-lint:v1.1.7
with:
github_token: ${{ secrets.github_token }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
ref: wip
- name: Build
run: go build -v ./...
- name: Prepare codeclimate
uses: aktions/codeclimate-test-reporter@v1
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: before-build
- name: Tests
run: go test ./... -coverprofile=c.out
- name: Send code coverage report
uses: aktions/codeclimate-test-reporter@v1
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: after-build -p github.com/eientei/videostreamer