-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add GitHub action for end-to-end tests (#5452)
Partial fix for #5291.
- Loading branch information
1 parent
64b0f5b
commit 4b3565f
Showing
4 changed files
with
50 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: e2e-tests | ||
# Runs the CI end-to-end test network on all pushes to master or release branches | ||
# and every pull request, but only if any Go files have been changed. | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- release/** | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v3 | ||
with: | ||
SUFFIX_FILTER: | | ||
.go | ||
.mod | ||
.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
|
||
- name: Build | ||
working-directory: test/e2e | ||
# Run two make jobs in parallel, since we can't run steps in parallel. | ||
run: make -j2 docker runner | ||
|
||
- name: Run CI testnet | ||
working-directory: test/e2e | ||
run: sudo ./build/runner -f networks/ci.toml | ||
|
||
- name: Emit logs on failure | ||
if: ${{ failure() }} | ||
working-directory: test/e2e | ||
run: ./build/runner -f networks/ci.toml logs |
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