ci.yml 840 B

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