-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
113 lines (105 loc) · 3.32 KB
/
compat-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
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
name: Compat
on:
pull_request:
branches:
- main
- v4-main
env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself
concurrency:
group: compat-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
fastboot:
timeout-minutes: 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:fastboot
embroider:
timeout-minutes: 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:embroider
env:
UV_USE_IO_URING: 0
vite:
timeout-minutes: 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:vite
floating-dependencies:
timeout-minutes: 9
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies w/o lockfile
run: pnpm install --no-lockfile
- name: Basic Tests
run: pnpm test
node-version-test:
name: Use Node.js ${{ matrix.node-version }}
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Basic Tests
run: pnpm test
packageManagers:
name: Smoke test w/ ${{ matrix.packageManager }} & ${{ matrix.kind }}
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
packageManager: [npm, yarn, pnpm]
kind:
- false # Test vanilla pnpm -r
- alpha # requires unstable-preview-types folder for each package
# These aren't ready yet, they require additional folders
# - beta # requires preview-types folder for each package
# - stable # requires types folder for each package
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: "Run a basic smoke test with ${{ matrix.packageManager }} and ${{ matrix.kind }} tagging"
run: |
bun ./scripts/test-package-manager.mjs \
"${{ matrix.packageManager }}" "${{ matrix.kind}}"