-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 898 Bytes
/
go.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
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: |
go generate ./...
go build ./...
- name: Test
run: go test ./... -coverprofile=c.out
env:
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
- name: Send code coverage report
uses: aktions/[email protected]
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
codeclimate-test-reporter-version: latest
command: after-build --prefix gopkg.in/auth0.v4