Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json

- name: Build
run: dotnet build --configuration Debug
shell: bash

- name: Start PostgreSQL ${{ matrix.pg_major }} (Linux)
id: setup-postgresql-linux
if: startsWith(matrix.os, 'ubuntu')
background: true
run: |
# First uninstall any PostgreSQL installed on the image
dpkg-query -W --showformat='${Package}\n' 'postgresql-*' | xargs sudo dpkg -P postgresql
Expand All @@ -85,7 +78,9 @@ jobs:
sudo -u postgres psql -c "CREATE USER npgsql_tests SUPERUSER PASSWORD 'npgsql_tests'"

- name: Start PostgreSQL ${{ matrix.pg_major }} (Windows)
id: setup-postgresql-windows
if: startsWith(matrix.os, 'windows')
background: true
run: |
# Find EnterpriseDB version number
EDB_VERSION=$(pwsh -c "
Expand Down Expand Up @@ -113,6 +108,18 @@ jobs:
pgsql/bin/psql -U postgres -c "CREATE DATABASE npgsql_tests OWNER npgsql_tests"
shell: bash

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json

- name: Build
run: dotnet build --configuration Debug
shell: bash

- name: Wait for PostgreSQL setup
wait-all: true

- name: Test
run: dotnet test -c ${{ matrix.config }} --filter-not-trait category=failing
shell: bash
Comment thread
roji marked this conversation as resolved.
Expand Down
Loading