@@ -128,24 +128,40 @@ jobs:
128
128
working-directory : sass-spec
129
129
130
130
sass_spec_js_embedded :
131
- name : ' JS API Tests | Embedded | Node ${{ matrix.node-version }} | ${{ matrix.os }}'
131
+ name : " JS API Tests | Embedded ${{ matrix.js && 'Pure JS' || 'Dart' }} | Node ${{ matrix.node-version }} | ${{ matrix.os }}"
132
132
runs-on : ${{ matrix.os }}
133
133
if : " github.event_name != 'pull_request' || !contains(github.event.pull_request.body, 'skip sass-embedded')"
134
134
135
135
strategy :
136
136
fail-fast : false
137
137
matrix :
138
+ js : [true, false]
138
139
os : [ubuntu-latest, windows-latest, macos-latest]
139
140
node-version : ['lts/*']
140
141
include :
141
142
# Test older LTS versions
142
- - os : ubuntu-latest
143
+ - js : true
144
+ os : ubuntu-latest
143
145
dart_channel : stable
144
146
node-version : lts/-1
145
- - os : ubuntu-latest
147
+ - js : true
148
+ os : ubuntu-latest
146
149
dart_channel : stable
147
150
node-version : lts/-2
148
- - os : ubuntu-latest
151
+ - js : true
152
+ os : ubuntu-latest
153
+ dart_channel : stable
154
+ node-version : lts/-3
155
+ - js : false
156
+ os : ubuntu-latest
157
+ dart_channel : stable
158
+ node-version : lts/-1
159
+ - js : false
160
+ os : ubuntu-latest
161
+ dart_channel : stable
162
+ node-version : lts/-2
163
+ - js : false
164
+ os : ubuntu-latest
149
165
dart_channel : stable
150
166
node-version : lts/-3
151
167
@@ -168,19 +184,13 @@ jobs:
168
184
- name : Initialize embedded host
169
185
run : |
170
186
npm install
171
- npm run init -- --compiler-path=.. --language-path=../build/language
187
+ npm run init -- --compiler-path=.. --language-path=../build/language --compiler-js=${{ matrix.js && 'true' || 'false' }}
172
188
npm run compile
173
- mv {`pwd`/,dist/}lib/src/vendor/dart-sass
174
189
working-directory : embedded-host-node
175
190
176
191
- name : Version info
177
- run : |
178
- path=embedded-host-node/dist/lib/src/vendor/dart-sass/sass
179
- if [[ -f "$path.cmd" ]]; then "./$path.cmd" --version
180
- elif [[ -f "$path.bat" ]]; then "./$path.bat" --version
181
- elif [[ -f "$path.exe" ]]; then "./$path.exe" --version
182
- else "./$path" --version
183
- fi
192
+ run : node dist/bin/sass.js --version
193
+ working-directory : embedded-host-node
184
194
185
195
- name : Run tests
186
196
run : npm run js-api-spec -- --sassPackage ../embedded-host-node --sassSassRepo ../build/language
0 commit comments