-
Notifications
You must be signed in to change notification settings - Fork 39
43 lines (41 loc) · 1020 Bytes
/
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
on:
push:
branches: [main]
pull_request:
branches: ['*']
concurrency:
cancel-in-progress: true
group: unit-tests-${{ github.ref }}
name: unit tests
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.22.3'
cache-dependency-path: go.sum
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pipenv
- name: Test setup
run: |
pip install pipenv
pipenv --python 3.12
pipenv install --dev
touch pkg/auth/auth0_client_secret.key
- name: Run test
run: |
go test -race -v -coverprofile=c.out ./...
- name: Update coverage report
if: github.ref_name == 'main'
uses: ncruces/go-coverage-report@v0
with:
coverage-file: c.out
chart: true
reuse-go: true