-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.09 KB
/
go-test-example.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
name: go-test example
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Clone go-test example
run: git clone https://github.com/launchableinc/examples.git
- name: Install dependencies
run: go install github.com/jstemmer/go-junit-report@latest
- name: Record build action
uses: ./
# uses: launchableinc/[email protected]
with:
build_name: $GITHUB_RUN_ID
source_path: ./examples/go/
- name: test
run: cd examples/go && go test -v ./... 2>&1 | go-junit-report -set-exit-code > report.xml
- name: Record test results to build action
uses: launchableinc/[email protected]
with:
build_name: $GITHUB_RUN_ID
report_path: ./examples/go/
test_runner: go-test
if: always()