Launchable is a software development intelligence platform currently focused on continuous integration (CI). Using data from your CI runs, Launchable provides various features to speed up your testing workflow so you can ship high quality software faster.
This action sends test results and Git commit graph changes from your GitHub Actions workflow to your Launchable workspace so you can use Launchable's features including:
- Test Notifications
- Test Insights
- Predictive Test Selection
- Create an API key on the Settings page of your Launchable workspace.
- Create an encrypted secret called
LAUNCHABLE_TOKEN
with your Launchable API key as its value. - Update your
actions/checkout
usage if needed (see below). - Add this action to your workflow. Add it after you run tests, like in the example below.
- Add the
with:
,if:
, andenv:
sections as shown below. - Set your
test_runner
andreport_path
values per this doc. - Run the workflow.
- If successful, you should see a link to the Launchable dashboard in the console output of the action.
Note: Depending on your test runner, you might need to modify your test runner command to ensure it creates test reports that Launchable accepts per this doc.
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
LAUNCHABLE_DEBUG: 1
LAUNCHABLE_REPORT_ERROR: 1
jobs:
tests:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest']
version: ['v1', 'v2']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Test
run: <YOUR TEST COMMAND HERE>
- name: Record build and test results action
uses: launchableinc/[email protected]
with:
report_path: .
test_runner: <YOUR TEST RUNNER HERE>
flavors: 'os=${{ matrix.os }}, version=${{ matrix.version }}'
if: always()
env:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN }}
If you use actions/checkout
, set fetch-depth: 0 as shown in the example below. Without this setting, Launchable will not receive information about all your commits.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
Refer to go-test example for example use of the action.
The name of your test runner. Our supported test runners are here.
Path to the test report(s) generated by your test runner. Refer to here for examples.
Note: Depending on your test runner, you might need to modify your test runner command to ensure it creates test reports that Launchable accepts per this doc.
Path to a local Git repository/workspace. Default .
.
Build name that you can give to the current software. Default is the Git SHA revealed by GitHub Actions.
The maximum number of days to collect commits retroactively. Default 30
.
Flag to stop collecting build information from Git Submodules. Default false
, which means the submodules are collected.
Flag to record test session without recording build. Default false
, which means the build is recorded.
Python version for the Launchable CLI to use. Default is 3.10
. Change this if your workflow requires a specific Python version.
Test session name that you can give to the value to --test-session-name
option of the record session
command. (Optional)
The value that you can give to the value to '--flavor option to the record session
command. e.g.) os=linux, version=v1
(Optional)
The value that you can give to the value to '--test-suite option to the record session
command. e.g.) test_suite=e2e
(Optional)
Launchable data collection action is licensed under Apache license.