Add Screenshot on fail plugin #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Example Tests CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js version 20.9.0 (minumum supported) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.9.0 | |
cache: 'npm' | |
- name: Install Node.js dependencies | |
run: npm ci | |
- name: Run tests in the example directory | |
run: npm test | |
working-directory: ./example | |
continue-on-error: true | |
- name: Report test results | |
uses: dorny/[email protected] | |
with: | |
name: results | |
path: './example/reports/result.xml' | |
reporter: java-junit |