node-pretest.yml 567 B

1234567891011121314151617181920212223242526
  1. name: 'Tests: pretest/posttest'
  2. on: [pull_request, push]
  3. jobs:
  4. pretest:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. - uses: ljharb/actions/node/run@main
  9. name: 'npm install && npm run pretest'
  10. with:
  11. node-version: 'lts/*'
  12. command: 'pretest'
  13. posttest:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: ljharb/actions/node/run@main
  18. name: 'npm install && npm run posttest'
  19. with:
  20. node-version: 'lts/*'
  21. command: 'posttest'