Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Replace test execution handler with conditional #232

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2032c83
Add unit test coverage and add workflow to upload test data
ykim-akamai Sep 21, 2023
f390c71
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai Nov 27, 2023
88ded0d
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai Dec 11, 2023
365a393
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai Jan 23, 2024
c1fe7a2
e2e framework, update makefile, tod upload logic changed to using git…
ykim-akamai Jan 25, 2024
137e63c
oops forgot LINODE_TOKEN
ykim-akamai Jan 25, 2024
9b95e9c
add submodule in workflow file
ykim-akamai Jan 25, 2024
7a2ad8c
misplaced submodule
ykim-akamai Jan 25, 2024
efaf6c5
lint
ykim-akamai Jan 25, 2024
524e18d
rename GNUmakefile to Makefile
ykim-akamai Jan 29, 2024
a437f04
Merge branch 'dev' into dev
zliang-akamai Jan 29, 2024
7b41f21
Add teardown
ykim-akamai Jan 29, 2024
26b5b73
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai Jan 29, 2024
89bf2b2
defer teardown method
ykim-akamai Jan 29, 2024
9ca2a0e
place defer block
ykim-akamai Jan 30, 2024
1edd5f3
made image label as global variable for duplicating tests
ykim-akamai Jan 31, 2024
727d87e
go fmt and update variable names
ykim-akamai Jan 31, 2024
2255282
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai Feb 5, 2024
14e449c
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai Feb 5, 2024
3ffc10e
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai May 8, 2024
a40b6d8
replace test execution handler with conditional
ykim-akamai May 8, 2024
250af74
update tod_scripts to latest
ykim-akamai May 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/integration-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,17 @@ jobs:
- name: Run integration and unit tests
run: |
echo "Testing with Go ${{ needs.get-go-version.outputs.go-version }}"
if ! make test | go-junit-report -set-exit-code > "$REPORT_FILENAME"; then
echo "EXIT_STATUS=1" >> $GITHUB_ENV
fi
cat "$REPORT_FILENAME"
make test | go-junit-report -set-exit-code -iocopy -out > "$REPORT_FILENAME"
env:
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}

- name: Upload test report as artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report-file
path: "${{ env.REPORT_FILENAME }}"

- name: Test Execution Status Handler
run: |
if [[ "$EXIT_STATUS" != 0 ]]; then
echo "Test execution contains failure(s), check Run Integration tests step above"
exit $EXIT_STATUS
else
echo "Tests passed!"
fi

process-upload-report:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion tod_scripts