js.yml 436 B

123456789101112131415161718192021222324
  1. name: tests
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: [8.x, 10.x, 12.x]
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Use Node.js ${{ matrix.node-version }}
  12. uses: actions/setup-node@v1
  13. with:
  14. node-version: ${{ matrix.node-version }}
  15. - run: npm install
  16. - run: npm run build --if-present
  17. - run: npm test
  18. env:
  19. CI: true