Docs
Blog Status Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Tokenless Invoke

Run tests from GitHub Actions without having to specify emulator.wtf API token

This option allows you to use the GITHUB_TOKEN instead of a normal emulator.wtf API token to invoke the tests. The GH token will be exchanged for a very short-lived emulator.wtf API token at invocation time.

To use this feature make sure it is enabled in GitHub integration settings in the emulator.wtf webpage and pass in secrets.GITHUB_TOKEN as the EW_API_TOKEN environment variable:

run-tests:
  runs-on: ubuntu-latest
  needs: build
  env:
    # use GH token instead as the EW API token
    EW_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  steps:
    # ... normal build steps follow

This is useful for public repositories where you may not want to trigger builds with long-living tokens to incoming PRs.

In trouble? Let us help!

If you have any questions or issues with the integration, please contact us and we’ll be happy to help!