-
Notifications
You must be signed in to change notification settings - Fork 10
75 lines (56 loc) · 1.63 KB
/
test.yml
File metadata and controls
75 lines (56 loc) · 1.63 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Tests
on:
push:
branches: [master, main, develop]
pull_request:
branches: [master, main, develop]
jobs:
test:
if: ${{ github.actor != 'atp-release[bot]' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run unit tests
run: yarn test:unit
- name: Run integration tests
run: yarn test:integration
# Note: We skip Jest e2e tests due to known isolated-vm + Jest worker
# incompatibility. Integration tests provide complete coverage with
# actual isolated-vm sandboxing (more reliable than Jest e2e).
- name: Check types
run: yarn build
- name: Lint
run: yarn lint || true
integration-comprehensive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run comprehensive integration tests
run: yarn test:integration
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
coverage/
*.log