-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tests for bridge module (#381)
* chore: add tests for bridge module * refactor sample methods
- Loading branch information
1 parent
11371f0
commit 186de54
Showing
39 changed files
with
378 additions
and
408 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: End to End Test | ||
name: Tests / Code Coverage | ||
|
||
on: | ||
push: | ||
|
@@ -9,7 +9,7 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
end-to-end-test: | ||
tests: | ||
strategy: | ||
matrix: | ||
go-version: [1.20.x] | ||
|
@@ -44,22 +44,22 @@ jobs: | |
${{ runner.os }}-go- | ||
- name: Setup GitHub Token | ||
run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
- name: run e2e test | ||
- name: run tests | ||
run: | | ||
make e2e_test | ||
make test | ||
- name: make coverage report | ||
id: coverage-report | ||
if: github.event_name == 'pull_request' | ||
continue-on-error: true | ||
run: | | ||
echo '## E2E Test Coverage Report' >> coverage-report.txt | ||
echo '## Test Coverage Report' >> coverage-report.txt | ||
echo 'commit-id: ${{ github.event.pull_request.head.sha }}' >> coverage-report.txt | ||
echo 'generated by https://github.com/vladopajic/go-test-coverage' >> coverage-report.txt | ||
echo >> coverage-report.txt | ||
echo '<details><summary>Additional details and impacted files</summary>' >> coverage-report.txt | ||
echo >> coverage-report.txt | ||
echo '```' >> coverage-report.txt | ||
make check-e2e-coverage >> coverage-report.txt | ||
make check-coverage >> coverage-report.txt | ||
echo '```' >> coverage-report.txt | ||
echo >> coverage-report.txt | ||
echo '</details>' >> coverage-report.txt | ||
|
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
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
Oops, something went wrong.