-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
break up and parallize arbiter work flow
forge test solidity dependabot toolchain version book tests and dependancies version warning migration book lint dependancy CI remove book deploy clippy codespell, fmt
- Loading branch information
Showing
20 changed files
with
238 additions
and
217 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,16 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "cargo" | ||
directory: "arbiter-core" | ||
schedule: | ||
interval: "daily" |
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 was deleted.
Oops, something went wrong.
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,123 @@ | ||
name: Rust | ||
|
||
on: push | ||
|
||
jobs: | ||
checkout: | ||
name: Checkout Code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
install-rust: | ||
name: Install Rust Toolchain | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.73.0 | ||
override: true | ||
|
||
install-foundry: | ||
name: Install Foundry | ||
runs-on: ubuntu-latest | ||
needs: install-rust | ||
steps: | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
components: rustfmt, clippy | ||
|
||
install-arbiter: | ||
name: Install Arbiter | ||
runs-on: ubuntu-latest | ||
needs: [install-rust] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install arbiter | ||
run: cargo install arbiter | ||
|
||
generate-bindings: | ||
name: Generate Bindings | ||
runs-on: ubuntu-latest | ||
needs: install-arbiter | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Generate Bindings | ||
run: arbiter bind | ||
|
||
- name: List directory structure | ||
run: ls -R | ||
|
||
- name: Move Bindings | ||
run: | | ||
mv ./src/bindings/* ./simulation/src/bindings/ | ||
run-tests: | ||
name: Run Tests | ||
runs-on: ubuntu-latest | ||
needs: generate-bindings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: test | ||
run: cargo test --workspace --exclude bindings | ||
|
||
fmt: | ||
name: fmt | ||
runs-on: ubuntu-latest | ||
needs: generate-bindings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: cargo fmt | ||
run: cargo +nightly fmt --all -- --check | ||
|
||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
needs: generate-bindings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: cargo clippy | ||
run: cargo clippy --all --all-features -- -A non_snake_case -D warnings | ||
|
||
udeps: | ||
name: udeps | ||
runs-on: ubuntu-latest | ||
needs: generate-bindings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install udeps | ||
run: cargo install --git https://github.com/est31/cargo-udeps --locked | ||
- name: cargo udeps | ||
run: cargo +nightly udeps | ||
|
||
codespell: | ||
name: codespell | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run CodeSpell | ||
uses: codespell-project/[email protected] | ||
with: | ||
check_hidden: true | ||
check_filenames: true | ||
skip: .git,Cargo.lock,target | ||
ignore_words_list: crate,Crate,functio |
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,21 @@ | ||
on: [push] | ||
|
||
name: Solidity | ||
|
||
jobs: | ||
check: | ||
name: Forge Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Run tests | ||
run: forge test -vvv | ||
|
||
- name: Run snapshot | ||
run: forge snapshot |
Oops, something went wrong.