-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (34 loc) · 870 Bytes
/
test.yml
File metadata and controls
43 lines (34 loc) · 870 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- "**"
env:
FORCE_COLOR: 2
NODE: 24
jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [24]
os: [ubuntu-latest, windows-latest]
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Update npm to latest
run: npm install -g npm@latest
- name: Install npm dependencies
run: cd examples && npm install && cd .. && npm install --legacy-peer-deps
- name: Run Jest tests
run: npm test
if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE)"