Left navbar collapse now more complete, small site logo incorporated #9
Workflow file for this run
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
# Runs mocha tests | |
# Tests are built to run on 5 browser modes (chrome, firefox, webkit/safari, iPhone, Pixel) | |
# Normally, each test is built to loop through all 5 modes, but if hooks fail, the test will stop | |
# TODO: Set user/pass secret to send to mocha tests | |
name: Mocha Tests | |
defaults: | |
run: | |
working-directory: ./tests | |
on: | |
push: | |
branches: [ main, ui-v2 ] | |
paths: | |
- '**/*.js' | |
- '**/*.html' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**/*.js' | |
- '**/*.html' | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
browser: [chromium, firefox, webkit, iphone, pixel] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright browsers | |
run: npx playwright install && npx playwright install-deps | |
- name: Run Mocha tests | |
run: npm test # alias to "mocha test" | |
env: | |
BROWSER: ${{ matrix.browser }} |