From 832d133a0819e1269774c586290a58d1b0b70545 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Sun, 9 Jul 2023 15:42:09 -0400 Subject: [PATCH 1/2] add postgres 15 to the test matrix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77c4d5b3..1ec3320b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - pgversion: [14, 13, 12, 11] + pgversion: [15, 14, 13, 12, 11] env: PGVERSION: ${{ matrix.pgversion }} From 94186fa306da20044103038151977e7dd9c4ce35 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 9 Aug 2023 11:25:41 -0400 Subject: [PATCH 2/2] add github test summary support --- .github/workflows/test.yml | 6 ++++++ tests/testacc_full.sh | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ec3320b..fc358c66 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,3 +34,9 @@ jobs: - name: testacc run: make testacc + + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: "report.xml" + if: always() diff --git a/tests/testacc_full.sh b/tests/testacc_full.sh index 39b2941f..f5eda374 100755 --- a/tests/testacc_full.sh +++ b/tests/testacc_full.sh @@ -12,7 +12,8 @@ setup() { } run() { - go test -count=1 ./postgresql -v -timeout 120m + go install github.com/jstemmer/go-junit-report/v2@latest + go test -count=1 ./postgresql -v -timeout 120m 2>&1 | tee test_output.txt | go-junit-report -iocopy -set-exit-code -out report.xml # keep the return value for the scripts to fail and clean properly return $?