fix syntax error in pipeline #43
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 }} | ||
PRISMA_PROVIDER: go run github.com/steebchen/prisma-client-go | ||
PRISMA_OUTPUT: ../../apps/prisma/db | ||
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 # triggers only in reviews-api | ||
- name: Unit test | ||
run: pnpm run unit | ||
- name: Integration test | ||
run: pnpm run integration | ||
- name: Test | ||
run: pnpm run test | ||
- name: Test Build Docker Image | ||
uses: ./.github/workflows/deploy-ghcr.yaml | ||
with: | ||
packages_deployment: $(pnpm turbo run build --filter='...[origin/main~1]' --dry=json | jq -c '.packages | map(select(. != "//"))' | jq -c 'map({name: ., imageTag:"ghcr.io/stamford-syntax-club/course-compose:\(.)-${{ env.GITHUB_SHA }}"})') | ||
environment: test | ||
push_to_ghcr: false |