visual-studio.yml 695 B

12345678910111213141516171819202122232425
  1. name: Tests on Windows
  2. on: [push, pull_request]
  3. jobs:
  4. Tests:
  5. strategy:
  6. fail-fast: false
  7. max-parallel: 15
  8. matrix:
  9. os: [windows-2022]
  10. runs-on: ${{ matrix.os }}
  11. steps:
  12. - name: Checkout Repository
  13. uses: actions/checkout@v2
  14. - name: Install Dependencies
  15. run: |
  16. npm install --no-progress
  17. - name: Set Windows environment
  18. if: matrix.os == 'windows-latest'
  19. run: |
  20. echo 'GYP_MSVS_VERSION=2015' >> $Env:GITHUB_ENV
  21. echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV
  22. - name: Environment Information
  23. run: npx envinfo
  24. - name: Run Node tests
  25. run: npm test