Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
mabl Github Actions implementation
TypeScript HTML
Branch: master
Clone or download
gcooney align properties better with our existing integrations; Add a few ne… (
…#8)

* align properties better with our existing integrations;  Add a few new propertiesl  retrieve related pull request

* delete checked in npm details and compiled typescript;  build in the action instead

* update READMEs, CONTRIBs, and build scripts
Latest commit e5dade7 Aug 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows align properties better with our existing integrations; Add a few ne… ( Aug 15, 2019
icons Cleanup before publish (#5) Aug 6, 2019
src align properties better with our existing integrations; Add a few ne… ( Aug 15, 2019
toolkit
.gitignore
.prettierignore fix branding Aug 7, 2019
.prettierrc
CONTRIBUTING.md align properties better with our existing integrations; Add a few ne… ( Aug 15, 2019
LICENSE Cleanup before publish (#5) Aug 6, 2019
README.md align properties better with our existing integrations; Add a few ne… ( Aug 15, 2019
_config.yml Set theme jekyll-theme-minimal Jul 23, 2019
action.yml
index.html Update index.html Aug 8, 2019
package-lock.json
package.json align properties better with our existing integrations; Add a few ne… ( Aug 15, 2019
tsconfig.json

README.md

mabl logo

mabl GitHub Run Tests Deployment Action

This GitHub Action creates a mabl deployment event, triggering any functional tests associated with that deployment and waiting for their results.

Example workflow:

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 }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          application-id: <your-application-id-a>
          environment-id: <your-environment-id-e>

Environment variables

  • MABL_API_KEY {string} - Your mabl API key available here This should be installed as a secret in your github repository.
  • GITHUB_TOKEN {string} (optional) - The Github token for your repository. If provided, the mabl action will associate a pull request with the deployment if the commit being built is associated with any pull requests. This token is automatically available as a secret in your repo but must be passed in explicitly in order for the action to be able to access it.

Inputs

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) - Set true to reset the visual baseline to the current deployment
  • set-static-baseline (optional) - Set true 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 failures
  • event-time {int64} (optional) - Event time the deployment occurred in UTC epoch milliseconds. Defaults to now.

outputs:

  • mabl-deployment-id {string} - mabl id of the deployment
  • plans_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.
You can’t perform that action at this time.