Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Apr 26, 2024
1 parent fad59c4 commit d3f9dc0
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- 'doc/**'

jobs:
xcode:
xcode-macos-13:
strategy:
fail-fast: false
matrix:
Expand All @@ -38,7 +38,7 @@ jobs:
- working-directory: build/
run: ctest --config ${{ matrix.build_type }} --output-on-failure

xcode-old:
xcode-macos-11:
strategy:
fail-fast: false
matrix:
Expand All @@ -48,34 +48,11 @@ jobs:
runs-on: macos-11

env:
TAOPQ_TEST_DATABASE: host=localhost dbname=mydatabase user=myuser password=mypassword
TAOPQ_TEST_DATABASE: host=localhost dbname=postgres user=postgres password=postgres

steps:
- uses: actions/checkout@v4

- run: |
brew services start postgresql
echo "Check PostgreSQL service is running"
i=10
COMMAND='pg_isready'
while [ $i -gt 0 ]; do
echo "Check PostgreSQL service status"
eval $COMMAND && break
((i--))
if [ $i == 0 ]; then
echo "PostgreSQL service not ready, all attempts exhausted"
exit 1
fi
echo "PostgreSQL service not ready, wait 10 more sec, attempts left: $i"
sleep 10
done
- run: |
psql --command="CREATE USER myuser PASSWORD 'mypassword'" --command="\du" postgres
- run: |
createdb --owner=myuser mydatabase
PGPASSWORD=mypassword psql --username=myuser --host=localhost --list mydatabase
- uses: ikalnytskyi/action-setup-postgres@v5

- run: cmake -E make_directory build

Expand Down

0 comments on commit d3f9dc0

Please sign in to comment.