rm #541
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: | |
| container-job: | |
| 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: pyramation/pgvector:13.3-alpine | |
| env: | |
| POSTGRES_USER: postgres | |
| 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: | |
| # TODO remove deps on git config | |
| - 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: deps | |
| run: yarn | |
| - name: build | |
| run: yarn build | |
| - name: seed app_user | |
| run: | | |
| psql -f ./bootstrap-roles.sql postgres | |
| env: | |
| PGHOST: pg_db | |
| PGPORT: 5432 | |
| PGUSER: postgres | |
| PGPASSWORD: password | |
| - name: mime-bytes | |
| run: cd ./packages/mime-bytes && yarn test | |
| - name: launchql/core | |
| run: cd ./packages/core && yarn test | |
| - name: launchql/cli | |
| run: cd ./packages/cli && yarn test | |
| - name: launchql/client | |
| run: cd ./packages/client && yarn test | |
| env: | |
| TEST_DATABASE_URL: postgres://postgres:password@pg_db:5432/postgres | |
| - name: graphile-test | |
| run: | | |
| cd ./packages/graphile-test | |
| createdb graphile_test_db | |
| psql -f sql/test.sql graphile_test_db | |
| psql -f sql/roles.sql graphile_test_db | |
| yarn test | |
| - name: pgsql-test | |
| run: | | |
| cd ./packages/pgsql-test | |
| yarn test | |
| - name: launchql/orm | |
| run: cd ./packages/orm && yarn test | |
| - name: launchql/url-domains | |
| run: cd ./packages/url-domains && yarn test | |
| - name: launchql/uuid-hash | |
| run: cd ./packages/uuid-hash && yarn test | |
| - name: launchql/uuid-stream | |
| run: cd ./packages/uuid-stream && yarn test | |
| - name: launchql/introspectron | |
| run: cd ./packages/introspectron && yarn test | |
| - name: launchql/query-builder | |
| run: cd ./packages/query-builder && yarn test | |
| - name: launchql/query | |
| run: cd ./packages/query && yarn test | |
| - name: launchql/launchql-gen | |
| run: cd ./packages/launchql-gen && yarn test | |
| - name: launchql/sqitch-parser | |
| run: cd ./packages/sqitch-parser && yarn test | |
| - name: launchql/pg-ast | |
| run: cd ./packages/pg-ast && yarn test | |
| - name: launchql/pg-codegen | |
| run: cd ./packages/pg-codegen && yarn test | |
| - name: launchql-gen | |
| run: cd ./packages/launchql-gen && yarn test | |
| - name: launchql/content-type-stream | |
| run: cd ./packages/content-type-stream && yarn test | |
| - name: launchql/s3-streamer | |
| run: cd ./packages/s3-streamer && yarn test | |
| env: | |
| MINIO_ENDPOINT: http://minio_cdn:9000 | |
| AWS_ACCESS_KEY: minioadmin | |
| AWS_SECRET_KEY: minioadmin | |
| AWS_REGION: us-east-1 | |
| BUCKET_NAME: test-bucket | |
| - name: launchql/upload-names | |
| run: cd ./packages/upload-names && yarn test |