Tried to improve a comment, and also added a default frame rate of 25… #33
This file contains 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
name: Build and run tests | |
on: [push,pull_request] | |
jobs: | |
Build-And-Run-Tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install Node.js and NPM | |
uses: actions/setup-node@v4 | |
- name: NPM Install | |
run: npm install | |
- name: NPM Build | |
run: npm run build | |
- name: NPM Linter | |
run: npm run lint:check | |
- name: NPM Test (Cypress) | |
run: npm run test:cypress | |
- name: Upload test videos (if any) | |
uses: actions/upload-artifact@v4 | |
# Store screenshots and videos only on failure: | |
if: ${{ failure() }} | |
with: | |
name: cypress-screenshots-and-video | |
path: | | |
tests/cypress/screenshots | |
tests/cypress/videos | |
if-no-files-found: ignore | |