File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
- name : Tests on Windows
2
- on : [push, pull_request]
1
+ # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
2
+
3
+ name : visual-studio
4
+ on :
5
+ push :
6
+ branches : [ main ]
7
+ pull_request :
8
+ branches : [ main ]
3
9
jobs :
4
- Tests :
10
+ visual-studio :
5
11
strategy :
6
12
fail-fast : false
7
- max-parallel : 15
13
+ max-parallel : 8
8
14
matrix :
9
- os : [windows-2022]
15
+ os : [windows-latest]
16
+ msvs-version : [2016, 2019, 2022] # https://github.com/actions/virtual-environments/tree/main/images/win
10
17
runs-on : ${{ matrix.os }}
11
18
steps :
12
19
- name : Checkout Repository
13
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v3
14
21
- name : Install Dependencies
15
22
run : |
16
23
npm install --no-progress
24
+ # npm audit fix --force
17
25
- name : Set Windows environment
18
- if : matrix.os == 'windows-latest'
26
+ if : startsWith( matrix.os, 'windows')
19
27
run : |
20
- echo 'GYP_MSVS_VERSION=2015 ' >> $Env:GITHUB_ENV
28
+ echo 'GYP_MSVS_VERSION=${{ matrix.msvs-version }} ' >> $Env:GITHUB_ENV
21
29
echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV
22
30
- name : Environment Information
23
31
run : npx envinfo
You can’t perform that action at this time.
0 commit comments