File tree 5 files changed +21
-26
lines changed
5 files changed +21
-26
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ inputs:
3
3
description : ' Whether to minify the bundle'
4
4
required : false
5
5
default : ' false'
6
+ node-version :
7
+ description : ' The version of Node.js to use'
8
+ required : false
9
+ default : ' 18.x'
6
10
7
11
runs :
8
12
using : composite
9
13
steps :
10
14
- uses : actions/setup-node@v3
11
15
with :
12
- node-version : 16.x
16
+ node-version : ${{ inputs.node-version }}
13
17
check-latest : true
14
18
15
19
# region Build the standard bundle
Original file line number Diff line number Diff line change @@ -20,29 +20,24 @@ jobs:
20
20
- uses : actions/checkout@v3
21
21
22
22
- uses : ./.github/actions/prepare
23
+ with :
24
+ # Remove when Preact CLI supports Node.js 18
25
+ node-version : 16.x
23
26
24
27
- name : ' Running the integration test'
25
28
run : |
26
29
source scripts/e2e-setup-ci.sh
27
- git clone https://github.com/preactjs-templates/default.git default
28
- cd default/template
29
- touch yarn.lock
30
- echo $(cat package.json | jq '.name = "pnp-test"') > package.json
31
- yarn
30
+
31
+ yarn dlx preact-cli create default default-app --yarn
32
+ cd default-app
32
33
yarn build
33
34
34
35
- name : ' Running the TypeScript integration test'
35
36
run : |
36
37
source scripts/e2e-setup-ci.sh
37
- git clone https://github.com/preactjs-templates/typescript.git default
38
- cd default/template
39
-
40
- # TODO: Remove once https://github.com/preactjs-templates/typescript/issues/71 is fixed
41
- rm -rf tests
42
38
43
- touch yarn.lock
44
- echo $(cat package.json | jq '.name = "pnp-test"') > package.json
45
- yarn
39
+ yarn dlx preact-cli create typescript ts-app --yarn
40
+ cd ts-app
46
41
yarn build
47
42
if : |
48
43
success() || failure()
Original file line number Diff line number Diff line change 23
23
- run : |
24
24
git fetch --no-tags --unshallow origin HEAD master
25
25
26
- - name : ' Use Node.js 16.x'
27
- uses : actions/setup-node@v3
26
+ - uses : actions/setup-node@v3
28
27
with :
29
- node-version : 16 .x
28
+ node-version : 18 .x
30
29
31
30
- name : ' Check that the Yarn files don'' t change on new installs (fix w/ "yarn install")'
32
31
run : |
@@ -151,10 +150,9 @@ jobs:
151
150
steps :
152
151
- uses : actions/checkout@v3
153
152
154
- - name : ' Use Node.js 16.x'
155
- uses : actions/setup-node@v3
153
+ - uses : actions/setup-node@v3
156
154
with :
157
- node-version : 16 .x
155
+ node-version : 18 .x
158
156
159
157
- name : ' Build bundle & plugins'
160
158
run : |
Original file line number Diff line number Diff line change 24
24
- name : ' Retrieve all the relevant tags'
25
25
run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
26
26
27
- - name : ' Use Node.js 16.x'
28
- uses : actions/setup-node@v3
27
+ - uses : actions/setup-node@v3
29
28
with :
30
- node-version : 16 .x
29
+ node-version : 18 .x
31
30
32
31
- name : ' Build a binary for convenience'
33
32
run : |
Original file line number Diff line number Diff line change 9
9
steps :
10
10
- uses : actions/checkout@v3
11
11
12
- - name : ' Install Node'
13
- uses : actions/setup-node@v3
12
+ - uses : actions/setup-node@v3
14
13
with :
15
- node-version : 14 .x
14
+ node-version : 18 .x
16
15
17
16
- name : ' Always use the latest sherlock'
18
17
run : |
You can’t perform that action at this time.
0 commit comments