Merge pull request #43 from seanwevans/codex/add-integration-tests #41
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install PostgreSQL and headers | |
| run: | | |
| sudo apt-get update | |
| # Install the server, contrib modules and the development headers | |
| sudo apt-get install -y postgresql postgresql-contrib libpq-dev | |
| - name: Start PostgreSQL | |
| run: | | |
| # Determine the installed major version and start the cluster | |
| sudo pg_ctlcluster $(pg_config --version | awk '{print $2}' | cut -d. -f1) main start | |
| - name: Run tests | |
| run: | | |
| make install | |
| sudo chown -R postgres:postgres . | |
| sudo -u postgres make installcheck |