Skip to content

accidentally commented out timeout #7

accidentally commented out timeout

accidentally commented out timeout #7

Workflow file for this run

# 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]
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 }}