Skip to content

shared-docker-builders-updated #1234

shared-docker-builders-updated

shared-docker-builders-updated #1234

name: Test against ponyc nightly
on:
repository_dispatch:
types:
- shared-docker-builders-updated
permissions:
packages: read
jobs:
vs-latest-ponyc-linux:
name: Verify main against the latest ponyc om Linux
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.2.0:nightly
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"
# Set health checks to wait until postgres has started
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
- name: Send alert on failure
if: ${{ failure() }}
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5
with:
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }}
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }}
organization-url: 'https://ponylang.zulipchat.com/'
to: notifications
type: stream
topic: ${{ github.repository }} scheduled job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.