ci.yml 709 B

12345678910111213141516171819202122232425262728
  1. name: Node CI
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. node_version: [10.x, 12.x]
  9. os: [ubuntu-latest, windows-latest, macOS-latest]
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: Use Node.js ${{ matrix.node_version }}
  13. uses: actions/setup-node@v1
  14. with:
  15. node-version: ${{ matrix.node_version }}
  16. - run: echo ${{github.ref}}
  17. - run: npm install
  18. - run: yarn run lint
  19. - run: yarn run tsc
  20. - run: yarn run build
  21. - run: yarn run test:all
  22. env:
  23. CI: true
  24. PROGRESS: none
  25. NODE_ENV: test
  26. NODE_OPTIONS: --max_old_space_size=4096