|
1 | 1 | name: Run JS tests |
2 | | - |
3 | | -# 3 different jobs are not combined into 1. |
4 | | -# In theory, it could be less error-prone: |
5 | | -# 1. Chokidar does huge load of IO / FS. |
6 | | -# 2. Github CI use virtual machines which can reuse single physical machine. |
7 | | -# 3. If same physical machine has too much IO usage, we have more chance of bugs. |
8 | | - |
9 | 2 | on: |
10 | 3 | - push |
11 | 4 | - pull_request |
12 | 5 | jobs: |
13 | | - lint: |
14 | | - name: Lint |
15 | | - runs-on: ubuntu-latest |
16 | | - steps: |
17 | | - - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 |
18 | | - - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 |
19 | | - with: |
20 | | - registry-url: 'https://registry.npmjs.org' |
21 | | - cache: npm |
22 | | - - run: npm install |
23 | | - - run: npm run build --if-present |
24 | | - - run: npm run lint --if-present |
25 | | - node_18: |
26 | | - name: Node v${{ matrix.version }} @ ${{ matrix.os }} |
27 | | - runs-on: ${{ matrix.os }} |
28 | | - strategy: |
29 | | - fail-fast: false |
30 | | - matrix: |
31 | | - version: [18] |
32 | | - os: [ubuntu-latest, windows-latest, macOS-latest] |
33 | | - steps: |
34 | | - - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 |
35 | | - - name: Use Node.js ${{ matrix.version }} |
36 | | - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 |
37 | | - with: |
38 | | - node-version: ${{ matrix.version }} |
39 | | - - run: npm install |
40 | | - - run: npm run build --if-present |
41 | | - - run: npm test |
42 | | - node_20: |
43 | | - name: Node v${{ matrix.version }} @ ${{ matrix.os }} |
44 | | - runs-on: ${{ matrix.os }} |
45 | | - strategy: |
46 | | - fail-fast: false |
47 | | - matrix: |
48 | | - version: [20] |
49 | | - os: [ubuntu-latest, windows-latest, macOS-latest] |
50 | | - steps: |
51 | | - - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 |
52 | | - - name: Use Node.js ${{ matrix.version }} |
53 | | - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 |
54 | | - with: |
55 | | - node-version: ${{ matrix.version }} |
56 | | - - run: npm install |
57 | | - - run: npm run build --if-present |
58 | | - - run: npm test |
59 | | - node_22: |
60 | | - name: Node v${{ matrix.version }} @ ${{ matrix.os }} |
61 | | - runs-on: ${{ matrix.os }} |
62 | | - strategy: |
63 | | - fail-fast: false |
64 | | - matrix: |
65 | | - version: [22] |
66 | | - os: [ubuntu-latest, windows-latest, macOS-latest] |
67 | | - steps: |
68 | | - - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 |
69 | | - - name: Use Node.js ${{ matrix.version }} |
70 | | - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 |
71 | | - with: |
72 | | - node-version: ${{ matrix.version }} |
73 | | - - run: npm install |
74 | | - - run: npm run build --if-present |
75 | | - - run: npm test |
76 | | - node_24: |
77 | | - name: Node v${{ matrix.version }} @ ${{ matrix.os }} |
78 | | - runs-on: ${{ matrix.os }} |
79 | | - strategy: |
80 | | - fail-fast: false |
81 | | - matrix: |
82 | | - version: [24] |
83 | | - os: [ubuntu-latest, windows-latest, macOS-latest] |
84 | | - steps: |
85 | | - - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 |
86 | | - - name: Use Node.js ${{ matrix.version }} |
87 | | - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 |
88 | | - with: |
89 | | - node-version: ${{ matrix.version }} |
90 | | - - run: npm install |
91 | | - - run: npm run build --if-present |
92 | | - - run: npm test |
93 | | - bun: |
94 | | - needs: node_22 |
95 | | - name: Bun |
96 | | - runs-on: macOS-latest |
97 | | - steps: |
98 | | - - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 |
99 | | - - uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 |
100 | | - - run: bun install |
101 | | - - run: bun run build |
102 | | - - run: bun run test:bun |
| 6 | + test-js: |
| 7 | + name: 'jsbt v0.4.1' |
| 8 | + uses: paulmillr/jsbt/.github/workflows/test-js-matrix.yml@90c5b7b7aaa71e6b810aae888150f9d661daffec |
0 commit comments