Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpursley committed Apr 16, 2024
1 parent a403e54 commit cef9f1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,13 @@ jobs:
run: dotnet build --no-restore --configuration Release /p:Version=${{ env.VERSION }} /p:CopyrightYear=$(date +%Y)

- name: Test
working-directory: Npgmq.Test
run: scripts/run-tests.sh
run: Npgmq.Test/scripts/run-tests.sh

- name: Test (pgmq 1.0.0)
working-directory: Npgmq.Test
run: scripts/run-tests.sh 1.0.0
run: Npgmq.Test/scripts/run-tests.sh 1.0.0

- name: Test (pgmq 0.26.0)
working-directory: Npgmq.Test
run: scripts/run-tests.sh 0.26.0
run: Npgmq.Test/scripts/run-tests.sh 0.26.0

- name: Pack
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
6 changes: 3 additions & 3 deletions Npgmq.Test/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
set -e

cleanup() {
"$(dirname "$0")"/stop-db.sh
"$(dirname "$0")"/stop-db.sh >/dev/null 2>&1
}

trap cleanup EXIT

"$(dirname "$0")"/start-db.sh "$@"

dotnet test ../
dotnet test "$(dirname "$0")"/../
cleanup
1 change: 1 addition & 0 deletions Npgmq.Test/scripts/stop-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
set -e

docker stop npgmq_test_db
docker rm npgmq_test_db

0 comments on commit cef9f1d

Please sign in to comment.