If your repository is hosted on Github, you can use Github Actions to run your tests on Github's infrastructure.
- everytime you push changes
- on every pull request creation
- on scheduled time
- by manual trigger
In the root of your repository, create a .github/workflows directory. Add a .yml file, for example .github/workflows/ci.yaml. In here you will configure how to run tests.
name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install uses: ianwalter/puppeteer@master with: args: npm install - name: Test uses: ianwalter/puppeteer@master with: args: npm run test:local - uses: actions/upload-artifact@v1 if: failure() with: name: logs path: logs
Refer Github to know more about creating workflow files.