End-to-end publish test using examples from docs (#199)

This commit is contained in:
Charles Lowell 2025-07-25 16:09:17 -07:00 • committed by GitHub
commit 4f5e85b510
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1041 additions and 919 deletions

View file

@ -141,20 +141,8 @@ jobs:
- name: Run integration tests
run: |
chmod +x ./integrationtests/run_tests.sh
./integrationtests/run_tests.sh
- name: Run integration tests with coverage
run: |
go test -v -race -coverprofile=integration-coverage.out -covermode=atomic ./integrationtests/...
- name: Upload integration coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./integration-coverage.out
flags: integrationtests
name: codecov-integration
fail_ci_if_error: false
chmod +x ./tests/integration/run.sh
./tests/integration/run.sh
# Overall status check
test-summary:

View file

@ -48,27 +48,5 @@ jobs:
- name: Run integration tests
run: |
# Run integration tests using the existing script
chmod +x ./integrationtests/run_tests.sh
./integrationtests/run_tests.sh
- name: Run integration tests with coverage
run: |
# Also run integration tests with Go test for coverage
go test -v -race -coverprofile=integration-coverage.out -covermode=atomic ./integrationtests/...
- name: Generate integration test coverage report
run: go tool cover -html=integration-coverage.out -o integration-coverage.html
- name: Upload integration coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./integration-coverage.out
flags: integrationtests
name: codecov-integration
fail_ci_if_error: false
- name: Upload integration coverage artifact
uses: actions/upload-artifact@v4
with:
name: integration-coverage-report
path: integration-coverage.html
chmod +x ./tests/integration/run.sh
./tests/integration/run.sh