PG Tools Service Nightly CI #85
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: PG Tools Service Nightly CI | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" | |
| jobs: | |
| build: | |
| name: Nightly CI on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-22.04 | |
| # - ubuntu-22.04-arm # Postgres step fails | |
| - windows-2022 | |
| - macos-13 | |
| - macos-14 # ARM | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Setup Postgres | |
| uses: ikalnytskyi/action-setup-postgres@v7 | |
| with: | |
| postgres-version: 16 | |
| port: 5432 | |
| username: postgres | |
| password: example | |
| database: postgres | |
| ssl: true | |
| - name: Run build script (Unix) | |
| if: runner.os != 'Windows' | |
| env: | |
| MACOSX_DEPLOYMENT_TARGET: 11.0 | |
| run: | | |
| ./scripts/build.sh | |
| - name: Run build script (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| powershell -File scripts/build.ps1 | |
| - name: Run tests (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| ./scripts/test-all.sh | |
| - name: Run tests (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| powershell -File scripts/test-all.ps1 |