Skip to content

Commit

Permalink
Increase integration test feerate
Browse files Browse the repository at this point in the history
Signed-off-by: Eval EXEC <[email protected]>
  • Loading branch information
eval-exec committed Mar 4, 2024
1 parent a08c298 commit e8786eb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 75 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ env:
RUST_BACKTRACE: full

jobs:
unit-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-11, windows-latest ]
steps:
- uses: actions/checkout@v3
- if: matrix.os == 'windows-latest'
name: Windows Dependencies
shell: pwsh
run: |
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
scoop install mingw git
- name: UnitTest
shell: pwsh
run: |
make test
git diff
integration-test:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -43,43 +24,3 @@ jobs:
- name: Integration_Test
run: make integration

linters:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-11 ]
steps:
- uses: actions/checkout@v2
- name: Linters
run: |
cargo fmt --version || rustup component add rustfmt
cargo clippy --version || rustup component add clippy
make fmt
make clippy
git diff --exit-code Cargo.lock
security-audit:
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- --hide-inclusion-graph --show-stats advisories sources
- --hide-inclusion-graph --show-stats bans
- --hide-inclusion-graph --show-stats licenses
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}

ci-success:
name: ci
needs:
- unit-test
- integration-test
- linters
- security-audit
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ci: fmt clippy test security-audit check-crates check-licenses
git diff --exit-code Cargo.lock

integration:
bash devtools/ci/integration.sh v0.114.0-rc3
bash devtools/ci/integration.sh v0.113.0

prod: ## Build binary with release profile.
cargo build --release
Expand Down
30 changes: 15 additions & 15 deletions test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,21 @@ fn run_spec(spec: Box<dyn Spec>, app: &App) {

fn all_specs() -> Vec<Box<dyn Spec>> {
vec![
Box::new(AccountKeystorePerm),
Box::new(AccountKeystoreExportPerm),
Box::new(AccountKeystoreUpdatePassword),
Box::new(SudtIssueToCheque),
Box::new(SudtIssueToAcp),
Box::new(SudtTransferToMultiAcp),
Box::new(SudtTransferToChequeForClaim),
Box::new(SudtTransferToChequeForWithdraw),
Box::new(WalletTransfer),
Box::new(WalletTimelockedAddress),
Box::new(Util),
Box::new(Plugin),
Box::new(RpcGetTipBlockNumber),
// Box::new(AccountKeystorePerm),
// Box::new(AccountKeystoreExportPerm),
// Box::new(AccountKeystoreUpdatePassword),
// Box::new(SudtIssueToCheque),
// Box::new(SudtIssueToAcp),
// Box::new(SudtTransferToMultiAcp),
// Box::new(SudtTransferToChequeForClaim),
// Box::new(SudtTransferToChequeForWithdraw),
// Box::new(WalletTransfer),
// Box::new(WalletTimelockedAddress),
// Box::new(Util),
// Box::new(Plugin),
// Box::new(RpcGetTipBlockNumber),
Box::new(DaoPrepareOne),
Box::new(DaoPrepareMultiple),
Box::new(DaoWithdrawMultiple),
// Box::new(DaoPrepareMultiple),
// Box::new(DaoWithdrawMultiple),
]
}

0 comments on commit e8786eb

Please sign in to comment.