test.yml 580 B

12345678910111213141516171819202122232425262728
  1. # This is a basic workflow to help you get started with Actions
  2. name: test
  3. on:
  4. push:
  5. branches: [ main, release ]
  6. pull_request:
  7. branches: [ main, release ]
  8. workflow_dispatch:
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - uses: actions/setup-node@v2
  15. with:
  16. node-version: '14'
  17. - name: Run install
  18. run: npm i -g lerna && npm run bootstrap
  19. - name: Run test
  20. run: npm run test:coverage
  21. - name: Run codecov
  22. run: npx codecov --token=${{ secrets.CODECOV_TOKEN }}