adding cors #40
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: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| env: | |
| CC_TEST_REPORTER_ID: 4943f634f52225e6554c4ba483bcbed755df0596602b583c712e9d667b1d9224 | |
| jobs: | |
| testing: | |
| name: Tests | |
| runs-on: ubuntu-20.04 | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| node: [ '20.17.0', ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Code Climate test reporter | |
| run: | | |
| curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
| chmod +x ./cc-test-reporter | |
| ./cc-test-reporter before-build | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9.10.0 | |
| - name: Use correct Node.js version | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build package (just in case build fails) | |
| run: pnpm build | |
| - name: Run tests with coverage | |
| uses: paambaati/codeclimate-action@v9.0.0 | |
| with: | |
| coverageCommand: pnpm test:cov |