Skip to content

empirical-run/dispatch-action

Repository files navigation

Dispatch action

Usage

- name: Build step
  id: prev-step
  run: ...

- name: Dispatch for tests
  uses: empirical-run/dispatch-action@main
  with:
    environment: production # or staging or mobile
    build-url: ${{ steps.prev-step.outputs.url }}

Supported inputs

  • environment: Required input, to specify which environment to run the tests against. Configure environments by contacting us.
  • build-url: Required input, for the URL of the application build
    • For web, this points to a URL of the deployment (e.g. https://staging.your-app.com)
    • For mobile, this points to a downloadable file, ending in .apk, .aab or .ipa

Note that this Action only supports whitelisted GitHub organizations. To get access, contact us.

Vercel deployments

If you are dispatching test run requests for Vercel deployments, it is a good idea to add the GITHUB_TOKEN environment variable to pull branch info.

- name: Dispatch for tests
  uses: empirical-run/dispatch-action@main
  with:
    environment: production # or staging or mobile
    build-url: ${{ steps.prev-step.outputs.url }}
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Development

npm install
npm run dev

The dist/index.js file needs to be committed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •