-
Notifications
You must be signed in to change notification settings - Fork 57
26 lines (25 loc) · 832 Bytes
/
ci.yml
File metadata and controls
26 lines (25 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: 'npm'
- name: Install node dependencies
run: npm ci --timing
- name: Lint javascript
run: npm run lint
- name: Run tests
# aa-exec applies Ubuntu's AppArmor profile for stable Chrome binaries to the Chrome for Testing binary downloaded by Puppeteer
# Without it, Puppeteer fails with error "No usable sandbox!"
# See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
run: npm run test-site-dev & sleep 20; aa-exec -p chrome -- npm run cucumber