-
Notifications
You must be signed in to change notification settings - Fork 46
35 lines (33 loc) · 1.08 KB
/
ci.yml
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
27
28
29
30
31
32
33
34
35
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Rich text editor tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: CI tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Cache Playwright Browsers
id: cache-playwright-browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-${{ hashFiles('./package-lock.json') }}
- run: npx playwright install --with-deps chromium firefox
- name: Install deps
# Don't run prepare step, since it runs tests also.
run: npm ci --ignore-scripts
- name: Run tests
env:
CI: true
run: npm run test