This repository was archived by the owner on Mar 8, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 146
49 lines (40 loc) · 1.1 KB
/
build.yml
File metadata and controls
49 lines (40 loc) · 1.1 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
name: Build
on:
push:
branches: ['*']
paths-ignore:
- '**.md'
- 'example/**'
- 'website/**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go
- name: Set up Git cookies
run: bash scripts/gogetcookie.sh
- name: Build
run: make build
- name: Start containers
run: docker-compose up -d --build
- name: Test
run: make testacc OPTS=-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/codeclimate-test-reporter@v1
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: after-build --prefix github.com/alexkappa/terraform-provider-auth0
- name: Stop containers
if: always()
run: docker-compose down