This GitHub Action creates a mabl deployment event, triggering any functional tests associated with that deployment and waiting for their results.
on: [push]
name: mabl
jobs:
test:
name: mabl Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Functional test deployment
id: mabl-test-deployment
uses: ./deploy-and-test/
env:
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
application-id: <your-application-id-a>
environment-id: <your-environment-id-e>
MABL_API_KEY
{string} - Your mabl API key available here
Note: Either application-id
or environment-id
must be supplied.
application-id
{string} (optional) - mabl id for the deployed application. Use the curl builder to find the id.environment-id
{string} (optional) - mabl id for the deployed environment. Use the curl builder to find the id.browser-types
(optional): override for browser types to test e.g.chrome, firefox, safari, internet_explorer
. If not provided, mabl will test the browsers configured on the triggered test.rebaseline-images
{boolean} (optional) - Settrue
to reset the visual baseline to the current deploymentset-static-baseline
(optional) - Settrue
to use current deployment as an exact static baseline. If set, mabl will not model dynamic areas and will use the current deployment as the pixel-exact visual baseline.continue-on-failure
(optional) - Set to true to continue the build even if there are test failuresevent-time
{int64} (optional) - Event time the deployment occurred in UTC epoch milliseconds. Defaults to now.
mabl-deployment-id
{string} - mabl id of the deploymentplans_run
{int32} - number of mabl plans run against this deployment. A mabl plan is a collection of similarly configured tests.plans_passed
{int32} - number of mabl plans that passed against this deployment. A mabl plan is a collection of similarly configured tests.plans_failed
{int32} - number of mabl plans that failed against this deployment. A mabl plan is a collection of similarly configured tests.journeys_run
{int32} - total number of mabl journeys run against this deployment. A mabl journey is an end to end test of your application.journeys_passed
{int32} - number of mabl journeys that passed against this deployment. A mabl journey is an end to end test of your application.journeys_failed
{int32} - number of mabl journeys that failed against this deployment. A mabl journey is an end to end test of your application.
If you would like to contribute, please submit a PR. If you encounter an problem, please file an Issue in this repo.
Actions need the compiled code checked in. This means your changes will only take effect if you run the build to generate .js files from the .ts Typescript files and check the .js files in as well.
Check in the Action with everything it needs to run. If you update dependencies you will need to commit the changes to Node modules as well.
# Remove any non-production dependencies
npm prune --production
# Compile Typescript to ES6
npm run build
# Add the compiled Typescript output
git add lib/
# Add Node dependencies
git add -f node_modules/*