chore(be): e2e tests #237
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: Backend CI | |
on: push | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: Build | |
run: | | |
cd apps/backend | |
pnpm prisma:generate | |
pnpm build | |
- name: Test | |
run: | | |
cd apps/backend | |
pnpm test | |
- name: Lint | |
run: | | |
cd apps/backend | |
pnpm lint | |
- name: Types check | |
run: | | |
cd apps/backend | |
pnpm types:check |