CMR-10210: Fix 502 gateway error on cmr-stac index.html/documentation & CMR-10208: Add content type in stac response to match service-desc #280
Workflow file for this run
This file contains 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: [18] | |
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 }} |