Add connection timeout #229
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: PR | |
| on: | |
| pull_request: | |
| paths: | |
| - '**' | |
| - '!**/*.md' | |
| - '!**/*.yml' | |
| - '!**/*.yaml' | |
| - '!.ci-dockerfiles/**' | |
| - '.github/workflows/pr.yml' | |
| concurrency: | |
| group: pr-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| packages: read | |
| jobs: | |
| vs-release-ponyc-linux: | |
| name: Test against recent ponyc release on Linux | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.2.0:release | |
| services: | |
| postgres: | |
| image: postgres:14.5 | |
| env: | |
| POSTGRES_DB: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_HOST_AUTH_METHOD: scram-sha-256 | |
| POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256" | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| postgres-ssl: | |
| image: ghcr.io/ponylang/postgres-ci-pg-ssl:latest | |
| env: | |
| POSTGRES_DB: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_HOST_AUTH_METHOD: scram-sha-256 | |
| POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256" | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.2 | |
| - name: Unit tests | |
| run: make unit-tests config=debug ssl=libressl | |
| - name: Integration tests | |
| run: make integration-tests config=debug ssl=libressl | |
| env: | |
| POSTGRES_HOST: postgres | |
| POSTGRES_PORT: 5432 | |
| POSTGRES_SSL_HOST: postgres-ssl | |
| POSTGRES_SSL_PORT: 5432 | |
| POSTGRES_USERNAME: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DATABASE: postgres | |
| POSTGRES_MD5_USERNAME: md5user | |
| POSTGRES_MD5_PASSWORD: md5pass | |
| - name: Build examples | |
| run: make examples config=debug ssl=libressl |