test.yml 511 B

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