-
Notifications
You must be signed in to change notification settings - Fork 159
112 lines (91 loc) · 2.93 KB
/
Copy pathtest.yml
File metadata and controls
112 lines (91 loc) · 2.93 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: CI Checks
on:
push:
branches: [main]
paths-ignore:
- 'website/**'
pull_request:
paths-ignore:
- 'website/**'
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Setup workspace
uses: ./.github/actions/setup-pnpm-node
with:
node-version: '24'
- name: Lint
run: pnpm lint:ci
typecheck:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Setup workspace
uses: ./.github/actions/setup-pnpm-node
with:
node-version: '24'
- name: Type check
run: pnpm typecheck
test_pr:
name: Tests
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Setup workspace
uses: ./.github/actions/setup-pnpm-node
with:
node-version: '24'
- name: Run tests
run: pnpm test
test_pr_rspack1:
name: Tests [Rspack 1]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Setup workspace
uses: ./.github/actions/setup-pnpm-node
with:
node-version: '24'
- name: Run tests against Rspack 1
run: pnpm turbo run test:rspack1
test_pr_rspack_compat:
name: Tests [Rspack compat smoke]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Setup workspace
uses: ./.github/actions/setup-pnpm-node
with:
node-version: '24'
# built-dist smoke tests: pack repack into a tarball, install it into
# standalone fixtures pinning each @rspack/core major, and assert the
# dual-major behavior matrix against the real dist
- name: Run dual-major smoke suite
run: pnpm --filter rspack-compat-test test:smoke
test_pr_windows:
name: Tests [Windows]
if: github.event_name == 'pull_request'
runs-on: windows-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
- name: Setup workspace
uses: ./.github/actions/setup-pnpm-node
with:
node-version: '24'
# the require(esm) loading path of @rspack/core@2 and the version
# helpers' filesystem resolution are Windows-sensitive - run the
# repack unit suite under both majors
- name: Run repack tests
run: pnpm turbo run test --filter @callstack/repack
- name: Run repack tests against Rspack 1
run: pnpm turbo run test:rspack1