forked from 11ty/eleventy
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.16 KB
/
ci.yml
File metadata and controls
38 lines (38 loc) · 1.16 KB
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
name: Unit Tests
on: push
permissions: read-all
jobs:
server:
name: Node.js v${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node: ["20", "22", "24"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # 6.4.0
with:
node-version: ${{ matrix.node }}
# cache: npm
- run: npm ci
- run: npm run test:server
client:
name: Vitest on ${{ matrix.os }} (Node.js v${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node: ["22"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # 6.4.0
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npx playwright install
- run: npm run test:client
env:
YARN_GPG: no