File tree 1 file changed +30
-24
lines changed
1 file changed +30
-24
lines changed Original file line number Diff line number Diff line change @@ -3,34 +3,40 @@ name: Test electron-chrome-extensions
3
3
on :
4
4
push :
5
5
paths :
6
- - ' packages/**'
6
+ - ' packages/**'
7
7
pull_request :
8
8
paths :
9
- - ' packages/**'
9
+ - ' packages/**'
10
10
11
11
jobs :
12
12
test :
13
- runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ os : [ubuntu-latest, windows-latest]
16
+
17
+ runs-on : ${{ matrix.os }}
14
18
15
19
steps :
16
- - name : Checkout Repo
17
- uses : actions/checkout@v4
18
-
19
- - name : Setup Node
20
- uses : actions/setup-node@v4
21
- with :
22
- node-version : ' 20.x'
23
-
24
- - name : Install dependencies
25
- run : |
26
- yarn install
27
-
28
- - name : Build
29
- run : |
30
- yarn build
31
-
32
- - name : Run tests
33
- uses : GabrielBB/xvfb-action@v1
34
- with :
35
- run : |
36
- yarn test
20
+ - name : Checkout Repo
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ' 20.x'
27
+
28
+ - name : Install dependencies
29
+ run : yarn install
30
+
31
+ - name : Build
32
+ run : yarn build
33
+
34
+ - name : Run tests (Linux)
35
+ if : runner.os == 'Linux'
36
+ uses : GabrielBB/xvfb-action@v1
37
+ with :
38
+ run : yarn test
39
+
40
+ - name : Run tests (Windows)
41
+ if : runner.os == 'Windows'
42
+ run : yarn test
You can’t perform that action at this time.
0 commit comments