-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): use dedicated rosetta config dir (#4473)
* fix(ci): use dedicated rosetta config dir * Add rosetta workflow and diff tag * dprint * validation --------- Co-authored-by: Chloe Martin <[email protected]>
- Loading branch information
1 parent
a183192
commit 1dea4c0
Showing
5 changed files
with
76 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Rosetta validation | ||
|
||
on: workflow_call | ||
|
||
concurrency: | ||
group: rosetta-validation-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_LOG: "error" | ||
# Don't emit giant backtraces in the CI logs. | ||
RUST_BACKTRACE: short | ||
CARGO_INCREMENTAL: 0 | ||
# Allow more retries for network requests in cargo (downloading crates) and | ||
# rustup (installing toolchains). This should help to reduce flaky CI failures | ||
# from transient network timeouts or other issues. | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
# RUSTFLAGS: -D warnings | ||
RUSTDOCFLAGS: -D warnings | ||
|
||
jobs: | ||
validation: | ||
timeout-minutes: 45 | ||
runs-on: [self-hosted] | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
|
||
- name: Setup environment | ||
run: .github/scripts/rosetta/setup.sh | ||
shell: bash | ||
|
||
- name: Start local IOTA network | ||
run: | | ||
iota start --no-full-node & | ||
shell: bash | ||
|
||
- name: Start Rosetta servers | ||
run: .github/scripts/rosetta/start_rosetta.sh | ||
shell: bash | ||
|
||
- name: Sleep for 20 seconds | ||
run: sleep 20s | ||
shell: bash | ||
|
||
- name: Run check:construction test | ||
run: | | ||
./bin/rosetta-cli --configuration-file rosetta_cli.json check:construction | ||
shell: bash | ||
|
||
- name: Run check:data test | ||
run: | | ||
./bin/rosetta-cli --configuration-file rosetta_cli.json check:data | ||
shell: bash |
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