chore(deps): update dependency eslint-plugin-tsdoc to v0.3.0 #7576
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: Test | |
on: | |
push: | |
branches: # Array of patterns that match refs/heads | |
- master # Push events on master branch | |
- releases/* # Push events to branches matching refs/heads/releases/* | |
pull_request: # Specify a second event with pattern matching | |
env: | |
CI: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x] | |
db-type: ['postgres', 'mysql'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: docker-compose -f ./examples/docker-compose.yml up -d | |
- name: Get npm cache directory | |
id: npm-cache | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
- name: Restore Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.npm-cache.outputs.dir }} | |
key: ${{ runner.os }}-node-${{matrix.node-version}}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{matrix.node-version}}- | |
- run: npm ci | |
- run: npm run bootstrap | |
- run: npm run build | |
- run: npm test | |
env: | |
NESTJS_QUERY_DB_TYPE: ${{ matrix.db-type }} | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: run-${{ matrix.node-version }}-${{ matrix.db-type }} | |
parallel: true | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |