pr.yml 573 B

1234567891011121314151617181920212223242526272829
  1. name: Node.js CI
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build:
  11. runs-on: ${{ matrix.os }}
  12. strategy:
  13. matrix:
  14. node-version: [10.x, 12.x, 14.x]
  15. os: [macos-latest, windows-latest, ubuntu-latest]
  16. steps:
  17. - run: git config --global core.autocrlf false
  18. - uses: actions/checkout@v2
  19. - name: Use Node.js ${{ matrix.node-version }}
  20. uses: actions/setup-node@v1
  21. with:
  22. node-version: ${{ matrix.node-version }}
  23. - run: npm ci
  24. - run: npm test