-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bandaid CI and refactor patch deployment script (#16)
Co-authored-by: MantisClone <david.hunt-mateo@mantisdata.solutions>
- Loading branch information
1 parent
a807820
commit cc11748
Showing
20 changed files
with
195 additions
and
195 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 |
---|---|---|
@@ -1,34 +1,39 @@ | ||
name: build and test | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Rust downgrade | ||
run: rustup default 1.67.0 | ||
- uses: actions/checkout@v3 | ||
- name: Install wasm32-unknown-unknown target | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Build and run conversion proxy unit tests | ||
working-directory: ./conversion_proxy | ||
run: cargo test | ||
- name: Build and run fungible proxy unit tests | ||
working-directory: ./fungible_proxy | ||
run: cargo test | ||
- name: Build and run fungible conversion proxy unit tests | ||
working-directory: ./fungible_conversion_proxy | ||
run: cargo test | ||
- name: Build and run mocks unit tests | ||
- name: Build contracts | ||
run: ./build.sh | ||
- name: Build mocks | ||
working-directory: ./mocks | ||
run: cargo test | ||
- name: Run integration tests | ||
run: ./test.sh | ||
run: ./build.sh | ||
- name: Unit and Integration Tests | ||
run: cargo test --all | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cargo format check | ||
run: cargo fmt -- --check | ||
- name: Cargo clippy | ||
run: cargo clippy -- -D warnings |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
conversion_proxy/.cargo/ | ||
*/target/ | ||
target/ | ||
out/ | ||
target/ |
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
RUSTFLAGS='-C link-arg=-s' cargo build --all --target wasm32-unknown-unknown --release | ||
mkdir -p ./out | ||
cp target/wasm32-unknown-unknown/release/conversion_proxy.wasm ./out/ | ||
cp target/wasm32-unknown-unknown/release/fungible_conversion_proxy.wasm ./out/ | ||
cp target/wasm32-unknown-unknown/release/fungible_proxy.wasm ./out/ | ||
RUSTFLAGS='-C link-arg=-s' cargo build --target wasm32-unknown-unknown --all --exclude mocks --release |
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
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
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
Oops, something went wrong.