-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing: Save pod logs and resources after e2e test run (#234)
* Expose logs/resources after test run Signed-off-by: Joaquim Moreno Prusi <[email protected]> * CI: Generate e2e artifacts and upload Signed-off-by: Joaquim Moreno Prusi <[email protected]> --------- Signed-off-by: Joaquim Moreno Prusi <[email protected]>
- Loading branch information
Showing
5 changed files
with
224 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,33 +6,38 @@ on: | |
merge_group: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
|
||
jobs: | ||
e2e-kind: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
- name: Run e2e tests | ||
run: | | ||
# By default make stops building on first non-zero exit code which | ||
# in case of E2E tests will mean that code coverage will only be | ||
# collected on successful runs. We want to collect coverage even | ||
# after failing tests. | ||
# With -k flag make will continue the build, but will return non-zero | ||
# exit code in case of any errors. | ||
ARTIFACT_PATH=/tmp/artifacts make -k test-e2e | ||
- name: Run e2e tests | ||
run: | | ||
# By default make stops building on first non-zero exit code which | ||
# in case of E2E tests will mean that code coverage will only be | ||
# collected on successful runs. We want to collect coverage even | ||
# after failing tests. | ||
# With -k flag make will continue the build, but will return non-zero | ||
# exit code in case of any errors. | ||
make -k test-e2e | ||
- uses: cytopia/[email protected] | ||
if: failure() | ||
with: | ||
name: e2e-artifacts | ||
path: /tmp/artifacts/ | ||
|
||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: e2e-cover.out | ||
flags: e2e | ||
functionalities: fixes | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: e2e-cover.out | ||
flags: e2e | ||
functionalities: fixes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters