ci.yml 654 B

123456789101112131415161718192021222324252627
  1. name: Node CI
  2. on: [push]
  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: yarn
  17. - run: yarn run lint
  18. - run: yarn run tsc
  19. - run: yarn run build
  20. - run: yarn run test:all
  21. env:
  22. CI: true
  23. PROGRESS: none
  24. NODE_ENV: test
  25. NODE_OPTIONS: --max_old_space_size=4096