Skip to content

Commit 68b5b5b

Browse files
authored
test: Try msvs-version: [2016, 2019, 2022] (#2700)
* test: Try msvs-version: [2016, 2019, 2022] * main, not master * Don't npm audit fix --force
1 parent 1c64ca7 commit 68b5b5b

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/visual-studio.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
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 ]
39
jobs:
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

0 commit comments

Comments
 (0)