updating the env paths in router/index.js #6604
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test and Coverage | |
| on: [ push, pull_request ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.x' | |
| - name: Install Dependencies | |
| run: npm install | |
| # 1. Run the test script | |
| - name: Run Tests with Coverage | |
| run: npm run test | |
| # 2. Upload to Coveralls | |
| # This uses the official Codacy Action | |
| - name: Update coverage to coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: './coverage/lcov.info' | |
| # 3. Upload to Codacy | |
| # This uses the official Codacy Action | |
| - name: Run Codacy Coverage Reporter | |
| uses: codacy/codacy-coverage-reporter-action@v1 | |
| with: | |
| project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
| coverage-reports: coverage/lcov.info |