Skip to content

Commit 5310d0a

Browse files
committed
Update example
1 parent 07b6eb3 commit 5310d0a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/go-test-example.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,30 @@ permissions:
1919

2020
jobs:
2121
tests:
22+
env:
23+
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_GO_EXAMPLE_TOKEN }}
2224
runs-on: ubuntu-latest
2325
steps:
24-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v2
2527
- name: Set up Go
26-
uses: actions/setup-go@v4
28+
uses: actions/setup-go@v2
2729
with:
2830
go-version: 1.18
2931
- name: Clone go-test example
3032
run: git clone https://github.com/launchableinc/examples.git
3133
- name: Install dependencies
3234
run: go install github.com/jstemmer/go-junit-report@latest
33-
- name: Record build
35+
- name: Record build action
3436
uses: ./
35-
# uses: launchableinc/[email protected]
3637
with:
3738
build_name: $GITHUB_RUN_ID
39+
source_path: ./examples/go/
3840
- name: test
3941
run: cd examples/go && go test -v ./... 2>&1 | go-junit-report -set-exit-code > report.xml
42+
- name: Record test results to build action
43+
uses: launchableinc/[email protected]
44+
with:
45+
build_name: $GITHUB_RUN_ID
46+
report_path: ./examples/go/
47+
test_runner: go-test
48+
if: always()

0 commit comments

Comments
 (0)