fix(ci): bump local mongodb to cloud instance #3
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: Unit Tests | |
on: [pull_request, push] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} | |
MONGO_URI: ${{ secrets.MONGO_URI }} | |
strategy: | |
matrix: | |
node-version: [18.x, 16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: pnpm install global | |
run: npm i -g pnpm | |
- name: deps install | |
run: pnpm i | |
- name: tests | |
run: pnpm test |