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 ]
39jobs :
4- Tests :
10+ visual-studio :
511 strategy :
612 fail-fast : false
7- max-parallel : 15
13+ max-parallel : 8
814 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
1017 runs-on : ${{ matrix.os }}
1118 steps :
1219 - name : Checkout Repository
13- uses : actions/checkout@v2
20+ uses : actions/checkout@v3
1421 - name : Install Dependencies
1522 run : |
1623 npm install --no-progress
24+ # npm audit fix --force
1725 - name : Set Windows environment
18- if : matrix.os == 'windows-latest'
26+ if : startsWith( matrix.os, 'windows')
1927 run : |
20- echo 'GYP_MSVS_VERSION=2015 ' >> $Env:GITHUB_ENV
28+ echo 'GYP_MSVS_VERSION=${{ matrix.msvs-version }} ' >> $Env:GITHUB_ENV
2129 echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV
2230 - name : Environment Information
2331 run : npx envinfo
You can’t perform that action at this time.
0 commit comments