uncomment middleware #1342
Workflow file for this run
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run unit tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install modules | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install latest docker-compose | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo curl -SL https://github.com/docker/compose/releases/download/v2.24.7/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose | |
- name: Build prisma | |
run: pnpm --filter @codemod-com/backend db:generate | |
- name: Build engine | |
run: pnpm build --filter codemod | |
- name: Run unit tests | |
run: | | |
if [[ ${{ matrix.os }} == "windows-latest" ]]; then | |
pnpm test:win | |
elif [[ ${{ matrix.os }} == "macos-latest" ]]; then | |
pnpm test --filter=!@codemod-com/backend | |
else | |
pnpm test | |
fi | |
shell: bash |