Review Cards update #194
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: Pipeline for testing | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Course compose CI/CD testing | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2.2.2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Install turbo | |
run: pnpm install --global turbo | |
- name: Install jest | |
working-directory: ./apps/course-api | |
run: pnpm add --save-dev jest @types/jest ts-jest | |
- name: Setup Go 1.21.5 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21.5" | |
- name: Generate Go ORM | |
working-directory: ./apps/reviews-api | |
run: pnpm run bootstrap:unix # triggers only in reviews-api | |
- name: Unit test | |
run: pnpm run unit | |
- name: Test | |
run: pnpm run test | |
- name: Integration test | |
run: pnpm run integration |