Skip to content

Commit 21868d6

Browse files
authored
Merge pull request #187 from jamals86/027-pg-transactions
027 pg transactions
2 parents c06c6ed + 5893839 commit 21868d6

232 files changed

Lines changed: 7360 additions & 5843 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/badges/sdk-dart-tests.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schemaVersion": 1,
3-
"label": "dart sdk tests",
4-
"message": "",
5-
"color": ""
3+
"label": "dart sdk tests (112)",
4+
"message": "status updated by release workflow",
5+
"color": "blue"
66
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schemaVersion": 1,
3-
"label": "typescript sdk tests",
4-
"message": "102/103 passed, 1 failed",
3+
"label": "typescript sdk tests (103)",
4+
"message": "101/103 passed, 2 failed",
55
"color": "red"
66
}

.github/badges/tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schemaVersion": 1,
3-
"label": "tests",
3+
"label": "overall tests (2383)",
44
"message": "2383/2383 passed",
55
"color": "brightgreen"
66
}

.github/workflows/ci.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,18 @@ jobs:
182182
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
183183
184184
- name: Run tests (nextest)
185+
id: nextest
185186
run: |
186-
cargo nextest run --profile ci --workspace --no-fail-fast --failure-output immediate-final
187+
cargo nextest run \
188+
--profile ci \
189+
--workspace \
190+
--exclude kalam-pg-extension \
191+
--no-fail-fast \
192+
--failure-output immediate-final
187193
continue-on-error: true
188194

189195
- name: Parse test results and generate badge
190-
if: always()
196+
if: always() && hashFiles('target/nextest/ci/junit.xml') != ''
191197
run: |
192198
JUNIT_FILE="target/nextest/ci/junit.xml"
193199
@@ -250,7 +256,7 @@ jobs:
250256
cat > .github/badges/tests.json << EOF
251257
{
252258
"schemaVersion": 1,
253-
"label": "tests",
259+
"label": "overall tests ($TOTAL)",
254260
"message": "$MESSAGE",
255261
"color": "$COLOR"
256262
}
@@ -263,14 +269,26 @@ jobs:
263269
exit 1
264270
fi
265271
272+
- name: Fail if JUnit report is missing after a successful nextest run
273+
if: always() && steps.nextest.outcome == 'success' && hashFiles('target/nextest/ci/junit.xml') == ''
274+
run: |
275+
echo "Error: JUnit XML report not found at target/nextest/ci/junit.xml"
276+
exit 1
277+
266278
- name: Publish test report
267-
if: always()
279+
if: always() && hashFiles('target/nextest/ci/junit.xml') != ''
268280
uses: dorny/test-reporter@v1
269281
with:
270282
name: nextest
271283
path: target/nextest/ci/junit.xml
272284
reporter: java-junit
273285

286+
- name: Fail workflow if nextest did not complete successfully
287+
if: always() && steps.nextest.outcome != 'success'
288+
run: |
289+
echo "nextest failed before completing the workspace suite"
290+
exit 1
291+
274292
- name: Commit badge
275293
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
276294
run: |

0 commit comments

Comments
 (0)