chore(deps): update dependency @types/node to v18.19.74 #571
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: tests | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
- master | |
jobs: | |
generic-tests: | |
strategy: | |
fail-fast: true | |
matrix: | |
node: | |
- "14" | |
- "16" | |
- "18" | |
runs-on: ubuntu-latest | |
name: Test on node ${{ matrix.node }} | |
steps: | |
- name: Checkout current | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Update npm | |
run: sudo npm install -g npm@latest | |
- name: install yarn | |
run: sudo npm install -g --force yarn | |
- name: install dependencies | |
run: yarn --unsafe-perm | |
- name: run linting | |
run: yarn lint | |
- name: run test | |
run: yarn test | |
- name: run integration test | |
run: yarn test:integration | |
- name: run test coverage | |
run: yarn test:cov | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ github.token }} | |
path-to-lcov: ./coverage/e2e/lcov.info | |
flag-name: node-${{ matrix.node }} | |
parallel: true | |
support-tests: | |
strategy: | |
fail-fast: true | |
matrix: | |
supported: | |
- "@nestjs/{common,core,platform-express,testing}@^7.0.0" | |
- "@nestjs/{common,core,platform-express,testing}@^8.0.0" | |
- rxjs@^6.0.0 | |
name: Support for ${{ matrix.supported }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Update npm | |
run: sudo npm install -g npm@latest | |
- name: install yarn | |
run: sudo npm install -g --force yarn | |
- name: install dependencies | |
run: yarn --unsafe-perm | |
- name: update dependencies to support ${{ matrix.supported }} | |
run: yarn add -D ${{ matrix.supported }} | |
- name: run test | |
run: yarn test | |
- name: run integration test | |
run: yarn test:integration | |
finish: | |
needs: | |
- generic-tests | |
- support-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls finished | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ github.token }} | |
path-to-lcov: ./coverage/e2e/lcov.info | |
parallel-finished: true |