Barazo AppView backend barazo.forum
at main 61 lines 1.9 kB view raw
1name: 'Copilot Setup Steps' 2 3on: 4 workflow_dispatch: 5 push: 6 paths: 7 - .github/workflows/copilot-setup-steps.yml 8 pull_request: 9 paths: 10 - .github/workflows/copilot-setup-steps.yml 11 12jobs: 13 copilot-setup-steps: 14 runs-on: ubuntu-latest 15 permissions: 16 contents: read 17 services: 18 postgres: 19 image: pgvector/pgvector:pg16 20 env: 21 POSTGRES_USER: barazo 22 POSTGRES_PASSWORD: barazo_dev 23 POSTGRES_DB: barazo 24 ports: 25 - 5432:5432 26 options: >- 27 --health-cmd "pg_isready -U barazo" 28 --health-interval 10s 29 --health-timeout 5s 30 --health-retries 5 31 valkey: 32 image: valkey/valkey:8-alpine 33 ports: 34 - 6379:6379 35 options: >- 36 --health-cmd "valkey-cli ping" 37 --health-interval 10s 38 --health-timeout 5s 39 --health-retries 3 40 steps: 41 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 42 - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 43 - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 44 with: 45 node-version: 24 46 - name: Clone and build barazo-lexicons 47 run: | 48 git clone --depth 1 https://github.com/singi-labs/barazo-lexicons.git ../barazo-lexicons 49 cd ../barazo-lexicons && pnpm install --ignore-scripts && pnpm run build 50 - run: pnpm install 51 - run: pnpm db:migrate 52 env: 53 DATABASE_URL: postgresql://barazo:barazo_dev@localhost:5432/barazo 54 - run: pnpm typecheck 55 - run: pnpm test 56 - run: pnpm test:integration 57 env: 58 DATABASE_URL: postgresql://barazo:barazo_dev@localhost:5432/barazo 59 VALKEY_URL: redis://localhost:6379 60 TAP_URL: http://localhost:2480 61 TAP_ADMIN_PASSWORD: tap_dev_secret