Skip to content

Restored the previous test for comments and Ctrl-C, and adapted it fo… #16

Restored the previous test for comments and Ctrl-C, and adapted it fo…

Restored the previous test for comments and Ctrl-C, and adapted it fo… #16

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