| # This action will upload coverage info to codecov.io | |
| name: test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - ts-main | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| env: | |
| DB_URL: mysql://root:root@localhost:3306/lake_db | |
| REDIS_URL: redis://localhost:6379/1 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: 12.x | |
| - run: 'npm install' | |
| - run: 'npm run test:cov' | |
| - uses: codecov/codecov-action@v2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage/clover.xml | |
| verbose: true |