GitHub Actions Integration

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/checkout@v2
            - uses: actions/setup-node@v2
              with:
                node-version: '18.17.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