Test: I just used a NAMS request to get the code coverage of each file in this project above 80%. How well did it do? #379
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: STAC Tests | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| - "[0-9]+\\.[0-9]+\\.[0-9]+-r[0-9]{2}\\.[0-9]\\.[0-9]" | |
| - "[0-9]+\\.[0-9]+\\.x" | |
| pull_request: | |
| branches: ["master"] | |
| jobs: | |
| UnitTests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| node_version: [lts/jod] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Run Tests with Coverage | |
| run: npm run test:coverage | |
| env: | |
| CI: "true" | |
| - name: Upload coverage to codecov | |
| uses: codecov/codecov-action@v4 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |