-
Notifications
You must be signed in to change notification settings - Fork 290
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
import blocks before test #3364
base: master
Are you sure you want to change the base?
Changes from 7 commits
29c83b5
7b88154
d9b2a3c
c1feeae
4dbadd4
bbfb4ac
1b961b9
1f3a066
bc2359f
539d0dd
acc03d0
a0ae398
604742d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build and Test With Blocks | ||
on: | ||
workflow_dispatch: | ||
# pull_request: | ||
# branches: | ||
# - master | ||
|
||
jobs: | ||
build-and-test: | ||
name: build and test | ||
runs-on: self-hosted | ||
timeout-minutes: 120 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
submodules: recursive | ||
- name: setup rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
components: rustfmt,clippy | ||
- name: run fmt check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -- --check | ||
- name: setup environment | ||
run: bash ./scripts/dev_setup.sh -b -t -y | ||
- name: run cargo clean | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clean | ||
- name: run cargo check | ||
uses: actions-rs/cargo@v1 | ||
env: | ||
RUSTFLAGS: -D warnings | ||
with: | ||
command: clippy | ||
args: --all-targets | ||
- name: build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --all | ||
- name: import blocks | ||
run: | | ||
bash ./scripts/import_net_block.sh main ~/.starcoin/main | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 感觉应该拉个 release 版本的去测试,import 执行会很慢。 |
||
- name: test | ||
run: bash ./scripts/auto_rerun_test.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个测试就没必要跑了。 |
||
- name: move-prover-test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: -p starcoin-move-prover | ||
- name: check changed files | ||
run: bash ./scripts/changed_files.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个测试也一样 |
||
- name: integration test dev environment | ||
env: | ||
RUST_LOG: info | ||
RUST_BACKTRACE: full | ||
STARCOIN_WS: ${{ secrets.STARCOIN_WS }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这里要用 ci 跑起来的那个节点去测试。 |
||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --test integration -- -e cmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里 import_block.sh 没有用。