Updated routes.js and fixed tests due to changes to createTeamRequest. #19
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: On-Push CI | |
on: [push] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: server/package-lock.json | |
- name: Set NODE_ENV to development | |
run: echo "NODE_ENV=development" >> $GITHUB_ENV | |
working-directory: ./server | |
- name: Install packages | |
run: npm i | |
working-directory: ./server | |
- name: Generate Prisma | |
run: npx prisma generate | |
working-directory: ./server | |
- name: Test | |
run: npx jest | |
working-directory: ./server |