-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.08 KB
/
tests.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
36
37
name: tests
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version-file: '.nvmrc'
- if: runner.os == 'Windows'
# temporary, see https://github.com/nodejs/node/issues/52682
shell: bash
run: |
npm install -g npm
- name: run test
shell: bash
run: |
npm ci
npx playwright install --with-deps
npm install -g npm
npm install -g tsx
npm -v
node -v
node -e "console.log(globalThis)"
node -e "console.log(await import('tsx'))"
npm run test:all