test.yml 584 B

123456789101112131415161718192021222324
  1. # This is a basic workflow to help you get started with Actions
  2. name: test
  3. on:
  4. push:
  5. branches: [main, release, test-code-coverage]
  6. pull_request:
  7. branches: [main, release]
  8. workflow_dispatch:
  9. jobs:
  10. jest:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v4
  14. - uses: actions/setup-node@v4
  15. with:
  16. node-version: '20'
  17. - name: Run install
  18. run: npm i -g lerna@^6 && npm run bootstrap
  19. - name: Run Jest test
  20. run: npm run test:unit