Support --flavor
and --test-session-name
options of launchable record session
command
#45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: go-test example | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
LAUNCHABLE_DEBUG: 1 | |
LAUNCHABLE_REPORT_ERROR: 1 | |
jobs: | |
tests: | |
env: | |
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_GO_EXAMPLE_TOKEN }} | |
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: test | |
run: cd examples/go && go test -v ./... 2>&1 | go-junit-report -set-exit-code > report.xml | |
- name: Record build and test results | |
uses: ./ | |
# uses: launchableinc/[email protected] | |
with: | |
build_name: $GITHUB_RUN_ID | |
report_path: ./examples/go/ | |
test_runner: go-test | |
source_path: ./examples/go/ | |
if: always() | |
- name: remove .launchable | |
run: rm -f .launchable | |
- name: Record test results without build | |
uses: ./ | |
# uses: launchableinc/[email protected] | |
with: | |
report_path: ./examples/go/ | |
no_build: "true" | |
test_runner: go-test | |
source_path: ./examples/go/ | |
if: always() |