test.yml 492 B

12345678910111213141516171819202122232425
  1. name: Test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. types: [opened, synchronize]
  8. jobs:
  9. test:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. node_version: [8, 10, 12]
  14. steps:
  15. - uses: actions/checkout@master
  16. - name: Use Node.js ${{ matrix.node_version }}
  17. uses: actions/setup-node@v1
  18. with:
  19. node-version: ${{ matrix.node_version }}
  20. - name: Install
  21. run: npm ci
  22. - name: Test
  23. run: npm test