File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 12
12
- name : Use Node.js latest
13
13
uses : actions/setup-node@v3
14
14
with :
15
- cache : ' yarn'
15
+ cache : " yarn"
16
16
- name : Update Yarn cache
17
17
env :
18
18
YARN_ENABLE_SCRIPTS : false # disable post-install scripts
31
31
- name : Use Node.js latest
32
32
uses : actions/setup-node@v3
33
33
with :
34
- cache : ' yarn'
34
+ cache : " yarn"
35
35
- name : Install
36
36
run : yarn install
37
37
- name : Lint
@@ -56,20 +56,28 @@ jobs:
56
56
- name : Use Node.js latest
57
57
uses : actions/setup-node@v3
58
58
with :
59
- node-version : ${{ matrix.node-version }}
60
- cache : ' yarn'
59
+ cache : " yarn"
60
+ - name : Downgrade Yarn and install
61
+ if : ${{ matrix.node-version < 18 }}
62
+ run : yarn set version 3 && yarn install --no-frozen-lockfile
61
63
- name : Install
64
+ if : ${{ matrix.node-version >= 18 }}
62
65
run : yarn install
63
66
- name : Build
64
67
run : yarn build
68
+ env :
69
+ BABEL_ENV : production
70
+ - name : Use Node.js ${{ matrix.node-version }}
71
+ uses : actions/setup-node@v3
72
+ with :
73
+ node-version : ${{ matrix.node-version }}
65
74
- name : Test on Node.js ${{ matrix.node-version }}
66
75
# `maxWorkers` cannot be 1 because we are using `process.exitCode` in our tests.
67
76
run : yarn jest --ci --color --maxWorkers=2
68
77
env :
69
78
BABEL_TYPES_8_BREAKING : true
70
79
- name : Test the esm build
71
- run :
72
- yarn test:esm
80
+ run : yarn test:esm
73
81
74
82
test-windows :
75
83
name : Test on Windows
82
90
uses : actions/setup-node@v3
83
91
with :
84
92
node-version : latest
85
- cache : ' yarn'
93
+ cache : " yarn"
86
94
- name : Install
87
95
run : yarn install
88
96
- name : Build with bash
96
104
env :
97
105
BABEL_TYPES_8_BREAKING : true
98
106
- name : Test the esm build
99
- run :
100
- yarn test:esm
107
+ run : yarn test:esm
You can’t perform that action at this time.
0 commit comments