Skip to content

fix syntax error in pipeline #43

fix syntax error in pipeline

fix syntax error in pipeline #43

Workflow file for this run

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 }}"})')

Check failure on line 53 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 53
environment: test
push_to_ghcr: false