forked from kshedden/datareader
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.04 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
name: test
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@main
- name: setup
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install dependencies
run: make common-deps
- name: run tests
run: make test-coverage
- name: Archive test and code coverage results
uses: actions/upload-artifact@v4
with:
name: results
path: |
test/*.xml
**/cover.out
report:
name: test report
runs-on: ubuntu-latest
if: success() || failure() # run this step even if previous step failed
needs: test
steps:
- name: checkout repo
uses: actions/checkout@main
- uses: actions/download-artifact@v4
with:
name: results
path: .
- uses: dorny/test-reporter@v1
with:
name: report
path: test/*.xml
reporter: java-junit