test.yml 980 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Tests
  2. on: [push, pull_request]
  3. env:
  4. CI: true
  5. jobs:
  6. run:
  7. name: Node ${{ matrix.node }} on ${{ matrix.os }}
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. node: [10, 12, 14]
  13. os: [ubuntu-latest, windows-latest]
  14. steps:
  15. - name: Clone repository
  16. uses: actions/checkout@v2
  17. - name: Set Node.js version
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: ${{ matrix.node }}
  21. - run: node --version
  22. - run: npm --version
  23. - name: Install npm dependencies
  24. run: npm i
  25. - name: Run tests
  26. run: npm test
  27. # We test multiple Windows shells because of prior stdout buffering issues
  28. # filed against Grunt. https://github.com/joyent/node/issues/3584
  29. - name: Run PowerShell tests
  30. run: "npm test # PowerShell" # Pass comment to PS for easier debugging
  31. shell: powershell
  32. if: startsWith(matrix.os, 'windows')