34
34
# pseudo-matrix for convenience, NEVER use more than a single combination
35
35
node : [16]
36
36
os : [ubuntu-latest]
37
- outputs :
38
- build_successful : ${{ steps.build.outcome == 'success' }}
39
37
steps :
40
38
- uses : actions/checkout@v3
41
39
- uses : actions/setup-node@v3
@@ -77,13 +75,17 @@ jobs:
77
75
matrix :
78
76
node : [16]
79
77
os : [ubuntu-latest, macos-latest, windows-latest]
78
+ svelte : [4]
80
79
include :
81
80
- node : 14
82
81
os : ubuntu-latest
82
+ svelte : 3
83
83
- node : 18
84
84
os : ubuntu-latest
85
+ svelte : 4
85
86
- node : 20
86
87
os : ubuntu-latest
88
+ svelte : 4
87
89
steps :
88
90
- uses : actions/checkout@v3
89
91
- uses : actions/setup-node@v3
@@ -101,16 +103,20 @@ jobs:
101
103
run : |
102
104
npm i -g pnpm@^7.33.0
103
105
tmppkg="$(jq '.engines.pnpm = "^7.33.0"' package.json)" && echo -E "${tmppkg}" > package.json && tmppkg=""
106
+ - name : use svelte 3
107
+ if : matrix.svelte == 3
108
+ run : |
109
+ tmppkg="$(jq '.devDependencies.svelte = "^3.59.2"' package.json)" && echo -E "${tmppkg}" > package.json && tmppkg=""
104
110
- uses : actions/setup-node@v3
105
111
with :
106
112
node-version : ${{ matrix.node }}
107
113
cache : ' pnpm'
108
114
cache-dependency-path : ' **/pnpm-lock.yaml'
109
115
- name : install
110
- if : matrix.node != 14
116
+ if : matrix.node != 14 && matrix.svelte != 3
111
117
run : pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
112
- - name : install for node14
113
- if : matrix.node == 14
118
+ - name : install for node14 or svelte3
119
+ if : matrix.node == 14 || matrix.svelte == 3
114
120
run : pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts
115
121
- name : install playwright chromium
116
122
run : pnpm playwright install chromium
@@ -123,7 +129,7 @@ jobs:
123
129
- uses : actions/upload-artifact@v3
124
130
if : failure()
125
131
with :
126
- name : test-failure-${{github.run_id}}-${{ matrix.os }}-${{ matrix.node }}
132
+ name : test-failure-${{github.run_id}}-${{ matrix.os }}-${{ matrix.node }}-${{ matrix.svelte }}
127
133
path : |
128
134
test-temp.tar
129
135
pnpm-debug.log
0 commit comments