GitHub Actions Integration

900900

In order to integrate Testim with GitHub Actions, you need to create a new GitHub-Action workflow:

Follow these instructions: https://docs.github.com/en/actions/quickstart

YAML File

name: Testim E2E
on: [push]

jobs:
    run-testimio-cli:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/[email protected]
            - uses: actions/[email protected]
              with:
                node-version: '16.13.0'
            - run: npm install -g @testim/testim-cli
            - run: testim --token <TESTIM_TOKEN> --project <PROJECT_ID> --grid <GRID_NAME>

📘

Best practice to work with sensitive data (e.g project token) is to use encrypted secrets