Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

ci: replace go-testreport with go-junit-report + EnricoMi action

Marioe7a8f83fa2c2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 77a7c030..0422569a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,16 +38,26 @@ jobs:
- name: Build
run: go build -o pinchtab ./cmd/pinchtab
- - name: Install go-testreport
- run: go install github.com/beheran/go-testreport@latest
-
- name: Test with coverage
- run: go test ./... -v -count=1 -coverprofile=coverage.out -covermode=atomic -json | tee test-results.json | go-testreport -markdown >> $GITHUB_STEP_SUMMARY
+ run: go test ./... -v -count=1 -coverprofile=coverage.out -covermode=atomic -json | tee test-results.json | grep -v "^{\"Action\"" > /tmp/filtered.json || true
+ continue-on-error: true
+
+ - name: Convert to JUnit XML
+ run: |
+ go install github.com/jstemmer/go-junit-report/v2@latest
+ cat test-results.json | go-junit-report -set-exit-code > test-report.xml || true
+ if: always()
+
+ - name: Publish test results
+ uses: EnricoMi/publish-unit-test-result-action@v2
+ if: always()
+ with:
+ files: test-report.xml
+ check_name: Unit Test Results
- name: Coverage summary
run: |
coverage=$(go tool cover -func=coverage.out | tail -1)
- echo "" >> $GITHUB_STEP_SUMMARY
echo "### Coverage" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "$coverage" >> $GITHUB_STEP_SUMMARY
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index b72e9786..6018a20e 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -30,21 +30,23 @@ jobs:
sudo apt-get install -y google-chrome-stable
echo "CHROME_BINARY=/usr/bin/google-chrome" >> $GITHUB_ENV
- - name: Install go-testreport
- run: go install github.com/beheran/go-testreport@latest
-
- name: Run integration tests
- run: go test -tags integration -v -timeout 10m -count=1 -json ./tests/integration/ | tee integration-results.json | go-testreport -markdown >> $GITHUB_STEP_SUMMARY
+ run: go test -tags integration -v -timeout 10m -count=1 -json ./tests/integration/ | tee integration-results.json
env:
BRIDGE_HEADLESS: "true"
BRIDGE_NO_RESTORE: "true"
PINCHTAB_TEST_PORT: "19867"
+ continue-on-error: true
- - name: Integration test summary
- if: always()
+ - name: Convert to JUnit XML
run: |
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "### Integration Test Details" >> $GITHUB_STEP_SUMMARY
- if [ -f integration-results.json ]; then
- jq '.Summary' integration-results.json >> $GITHUB_STEP_SUMMARY || true
- fi
+ go install github.com/jstemmer/go-junit-report/v2@latest
+ cat integration-results.json | go-junit-report -set-exit-code > integration-report.xml || true
+ if: always()
+
+ - name: Publish integration test results
+ uses: EnricoMi/publish-unit-test-result-action@v2
+ if: always()
+ with:
+ files: integration-report.xml
+ check_name: Integration Test Results