node.yml 441 B

12345678910111213141516171819202122
  1. name: Build
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - uses: actions/setup-node@v2
  11. with:
  12. node-version: 16
  13. - run: npm ci
  14. - run: sudo apt-get install xvfb
  15. - name: Lint
  16. run: npm run lint
  17. - name: Test
  18. run: npm install --no-save "gl@^6.0.2" && xvfb-run --auto-servernum npm run jest
  19. - name: Build
  20. run: npm run build