Show the name a ship submits to Unified, and flag the bad ones #171
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| frontend: ${{ steps.filter.outputs.frontend }} | |
| backend: ${{ steps.filter.outputs.backend }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| backend: | |
| - 'editor-backend/**' | |
| frontend: | |
| - '**' | |
| - '!editor-backend/**' | |
| frontend: | |
| runs-on: ubuntu-22.04 | |
| needs: changes | |
| if: needs.changes.outputs.frontend == 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.6" | |
| - run: bun install --frozen-lockfile | |
| - run: bun run lint | |
| - run: bunx tsc --noEmit | |
| - run: bun run build | |
| env: | |
| DATABASE_URL: postgresql://ci:ci@localhost:5432/ci | |
| DATABASE_SSL: "false" | |
| BETTER_AUTH_SECRET: ci-secret-do-not-use | |
| NEXT_PUBLIC_APP_URL: http://localhost:3000 | |
| EDITOR_BACKEND_URL: http://127.0.0.1:8001 | |
| NEXT_PUBLIC_EDITOR_BACKEND_URL: /api | |
| backend: | |
| runs-on: ubuntu-22.04 | |
| needs: changes | |
| if: needs.changes.outputs.backend == 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - run: python -m compileall editor-backend/app |