Attempt to specify the coverage file #90
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: Browser Tests | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v3 | |
# Setup Node.js environment (use 18.x and enable caching) | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
# Install dependencies | |
- name: Install dependencies | |
run: npm ci --legacy-peer-deps | |
# Build the project (if there is a build script) | |
- name: Build the project | |
run: npm run build --if-present | |
# Run Nightwatch tests | |
- name: Run Nightwatch tests | |
run: npm run test:e2e | |