Skip to content

Added a pause function to help with running things at a certain numbe… #31

Added a pause function to help with running things at a certain numbe…

Added a pause function to help with running things at a certain numbe… #31

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