cleanup roles and flow #10
Workflow file for this run
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: LaunchQL tests | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| container: pyramation/node-sqitch:20.12.0 | |
| env: | |
| PGHOST: pg_db | |
| PGPORT: 5432 | |
| PGUSER: postgres | |
| PGPASSWORD: password | |
| services: | |
| pg_db: | |
| image: supabase/postgres:17.6.1.013 | |
| env: | |
| POSTGRES_USER: supabase_admin | |
| POSTGRES_PASSWORD: password | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| minio_cdn: | |
| image: minio/minio:edge-cicd | |
| env: | |
| MINIO_ROOT_USER: minioadmin | |
| MINIO_ROOT_PASSWORD: minioadmin | |
| ports: | |
| - 9000:9000 | |
| - 9001:9001 | |
| options: >- | |
| --health-cmd "curl -f http://localhost:9000/minio/health/live || exit 1" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Configure Git (for tests) | |
| run: | | |
| git config --global user.name "CI Test User" | |
| git config --global user.email "[email protected]" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Enable corepack and pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@9 --activate | |
| pnpm -v | |
| node -v | |
| - name: Install | |
| run: pnpm install | |
| - name: Install LaunchQL CLI globally | |
| run: npm install -g @launchql/[email protected] | |
| - name: Build | |
| run: pnpm -r build | |
| test: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| container: pyramation/node-sqitch:20.12.0 | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - rls-demo | |
| env: | |
| PGHOST: pg_db | |
| PGPORT: 5432 | |
| PGUSER: postgres | |
| PGPASSWORD: password | |
| services: | |
| pg_db: | |
| image: supabase/postgres:17.6.1.013 | |
| env: | |
| POSTGRES_USER: supabase_admin | |
| POSTGRES_PASSWORD: password | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| minio_cdn: | |
| image: minio/minio:edge-cicd | |
| env: | |
| MINIO_ROOT_USER: minioadmin | |
| MINIO_ROOT_PASSWORD: minioadmin | |
| ports: | |
| - 9000:9000 | |
| - 9001:9001 | |
| options: >- | |
| --health-cmd "curl -f http://localhost:9000/minio/health/live || exit 1" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Configure Git (for tests) | |
| run: | | |
| git config --global user.name "CI Test User" | |
| git config --global user.email "[email protected]" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Enable corepack and pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@9 --activate | |
| pnpm -v | |
| node -v | |
| - name: Install | |
| run: pnpm install | |
| - name: Install LaunchQL CLI globally | |
| run: npm install -g @launchql/[email protected] | |
| - name: Build | |
| run: pnpm -r build | |
| - name: Test ${{ matrix.package }} | |
| run: cd ./packages/${{ matrix.package }} && pnpm test | |