forked from nodejs/node-gyp
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1003 Bytes
/
visual-studio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
name: visual-studio
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
visual-studio:
strategy:
fail-fast: false
max-parallel: 8
matrix:
include:
- os: windows-2019
msvs-verison: 2019
- os: windows-2022
msvs-version: 2022
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
npm install --no-progress
- name: Environment Information
run: npx envinfo
- name: Run Node tests
shell: pwsh
run: |
$pythonLocation = (Get-Command python).Source
npm run test --python="${pythonLocation}" --msvs-version="${{ matrix.msvs-version }}"