1
- name : CI — Oxide
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name : CI — Stable
2
5
3
6
on :
4
7
push :
5
- branches : [master, 3.3, 3.4 ]
8
+ branches : [master]
6
9
pull_request :
7
10
branches : [master, 3.3, 3.4]
8
11
13
16
CI : true
14
17
TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
15
18
TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
16
- CACHE_PREFIX : oxide
19
+ CACHE_PREFIX : stable
17
20
18
21
jobs :
19
22
build :
20
23
runs-on : ubuntu-latest
21
- timeout-minutes : 15
22
24
23
25
strategy :
24
26
matrix :
25
- node-version : [18]
27
+ node-version : [14, 18]
26
28
27
29
steps :
28
30
- uses : actions/checkout@v3
@@ -31,46 +33,27 @@ jobs:
31
33
with :
32
34
node-version : ${{ matrix.node-version }}
33
35
36
+ - name : Use the `stable` engine
37
+ run : |
38
+ node ./scripts/swap-engines.js
39
+
34
40
- name : Cache node_modules
35
41
uses : actions/cache@v3
36
42
with :
37
43
path : node_modules
38
44
key : ${{ runner.os }}-${{ matrix.node-version }}-${{ env.CACHE_PREFIX }}-node_modules-${{ hashFiles('**/package-lock.json') }}
39
45
40
- # Cargo already skips downloading dependencies if they already exist
41
- - name : Cache cargo
42
- uses : actions/cache@v3
43
- with :
44
- path : |
45
- ~/.cargo/bin/
46
- ~/.cargo/registry/index/
47
- ~/.cargo/registry/cache/
48
- ~/.cargo/git/db/
49
- target/
50
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
51
-
52
- # Cache the `oxide` Rust build
53
- - name : Cache oxide build
54
- uses : actions/cache@v3
55
- with :
56
- path : |
57
- ./oxide/target/
58
- ./oxide/crates/node/*.node
59
- ./oxide/crates/node/index.js
60
- ./oxide/crates/node/index.d.ts
61
- key : ${{ runner.os }}-oxide-${{ hashFiles('./oxide/crates/**/*') }}
62
-
63
46
- name : Install dependencies
64
47
run : npm install
65
48
66
49
- name : Build Tailwind CSS
67
- run : npx turbo run build --filter=//
50
+ run : npm run build
68
51
69
52
- name : Test
70
53
run : |
71
- npx turbo run test --filter=// || \
72
- npx turbo run test --filter=// || \
73
- npx turbo run test --filter=// || exit 1
54
+ npm run test || \
55
+ npm run test || \
56
+ npm run test || exit 1
74
57
75
58
- name : Lint
76
- run : npx turbo run style --filter=//
59
+ run : npm run style
0 commit comments