mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 04:48:20 +02:00

* feat!: use package.json files to limit which files are published Fixes: #2372 * Use npmignore instead of package.json#files * Add update-gyp.py to npmignore * Add install to pack test * Use output var for pack dir * Move existing .gitignore entries to .npmignore * Sort git and npm ignores * Update and cleanup workflows
34 lines
914 B
YAML
34 lines
914 B
YAML
# 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
|
|
- name: Run Node tests
|
|
shell: pwsh
|
|
run: |
|
|
$pythonLocation = (Get-Command python).Source
|
|
npm run test --python="${pythonLocation}" --msvs-version="${{ matrix.msvs-version }}"
|