add solution for 4-module 01-nest-js-components: add Middleware, Pipes, Guards, Interceptors and Error Handlers. Also added check authorization header, and decode role. Add test for authorization header cases. #9
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 workflow | |
on: pull_request | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "22.11.0" | |
- uses: supercharge/[email protected] | |
with: | |
mongodb-version: "8.0" | |
- run: npm install | |
- run: npm test --silent | |
env: | |
CI: true |