End-to-end publish test using examples from docs (#199)
This commit is contained in:
parent
774a0df592
commit
4f5e85b510
2 changed files with 1041 additions and 919 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
26
.github/workflows/integration-tests.yml
vendored
26
.github/workflows/integration-tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue