Skip to content

Commit

Permalink
:octocat: rung pgsql on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Aug 25, 2024
1 parent a431b33 commit bb6b87a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 27 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,21 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4

# pgsql is already installed on the runner, we just need to start the service
# https://www.cybertec-postgresql.com/en/postgresql-github-actions-continuous-integration/
# - name: "Start PostgreSQL (Linux)"
# if: ${{ runner.os == 'Linux' }}
# # we also need to change the password for the default user under Linux to match the one under Windows
# run: |
# sudo systemctl start postgresql.service
# pg_isready
# sudo -u postgres psql --command="ALTER USER postgres PASSWORD 'root';"
# sudo -u postgres createdb --echo --owner=postgres dbtest
#
# - name: "Start PostgreSQL (Windows)"
# if: ${{ runner.os == 'Windows' }}
# run: |
# $pgService = Get-Service -Name postgresql*
# Set-Service -InputObject $pgService -Status running -StartupType automatic
# Start-Process -FilePath "$env:PGBIN\pg_isready" -Wait -PassThru
# & $env:PGBIN\createdb --echo --owner=postgres dbtest
- name: "Install SQLite (Linux)"
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get -y install sqlite3 libsqlite3-dev

- name: "Install SQLite (Windows)"
if: ${{ runner.os == 'Windows' }}
run: choco install sqlite

- name: "Install Postgres"
uses: ikalnytskyi/action-setup-postgres@v6
with:
username: postgres
password: root
database: dbtest
port: 5432

# - name: "Install MySQL"
# uses: shogo82148/actions-setup-mysql@v1
Expand All @@ -130,14 +127,6 @@ jobs:
# - name: "Create MySQL test database"
# run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;"

- name: "Install SQLite (Linux)"
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get -y install sqlite3 libsqlite3-dev

- name: "Install SQLite (Windows)"
if: ${{ runner.os == 'Windows' }}
run: choco install sqlite

# - name: "Install Firebird (Linux)"
# if: ${{ runner.os == 'Linux' }}
# run: |
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<groups>
<exclude>
<group>firebird</group>
<group>pgsql</group>
<group>mssql</group>
<group>mysql</group>
</exclude>
Expand Down

0 comments on commit bb6b87a

Please sign in to comment.