File tree 2 files changed +20
-14
lines changed
2 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
test :
11
11
name : Node.js Tests
12
- runs-on : ubuntu-latest
13
12
strategy :
14
13
matrix :
14
+ os : [windows-latest, ubuntu-latest]
15
15
node : [16.x, 18.x, 20.x, 22.x]
16
+ runs-on : ${{ matrix.os }}
16
17
steps :
17
18
- uses : actions/checkout@v2
18
19
with :
Original file line number Diff line number Diff line change 1
1
import assert from "assert" ;
2
2
import { type Scenario , mapDirectory , runScenarios } from "./scenarios" ;
3
3
4
- const filesOwnName = await mapDirectory ( "test/fixtures/scenario_build_app" ) ;
4
+ // Windows tests are disabled
5
+ if ( process . platform !== 'win32' ) {
5
6
6
- const scenarios : Scenario [ ] = [
7
- {
8
- files : filesOwnName ,
9
- commands : [ "jspm build --config rollup-config.mjs" ] ,
10
- validationFn : async ( files ) => {
11
- const build = files . get ( "build.js" ) ;
12
- assert ( ! ! build ) ;
13
- assert ( ! build . includes ( 'import { add } from "./utils.js"' ) ) ;
14
- assert ( build . includes ( "const add = (num1, num2) => num1 + num2" ) ) ;
7
+ const filesOwnName = await mapDirectory ( "test/fixtures/scenario_build_app" ) ;
8
+
9
+ const scenarios : Scenario [ ] = [
10
+ {
11
+ files : filesOwnName ,
12
+ commands : [ "jspm build --config rollup-config.mjs" ] ,
13
+ validationFn : async ( files ) => {
14
+ const build = files . get ( "build.js" ) ;
15
+ assert ( ! ! build ) ;
16
+ assert ( ! build . includes ( 'import { add } from "./utils.js"' ) ) ;
17
+ assert ( build . includes ( "const add = (num1, num2) => num1 + num2" ) ) ;
18
+ } ,
15
19
} ,
16
- } ,
17
- ] ;
20
+ ] ;
21
+
22
+ runScenarios ( scenarios ) ;
18
23
19
- runScenarios ( scenarios ) ;
24
+ }
You can’t perform that action at this time.
0 commit comments