-
Notifications
You must be signed in to change notification settings - Fork 4
chore: fix CI and refactor patch deployment script #16
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f386079
chore: refactor patch deployment script
yomarion 3b320b7
chore: help text
yomarion e9a56d8
PR feedback
yomarion f309e46
chore: check CI pipe
yomarion 63199cb
debug workflow
yomarion f119daa
fix: GH workflow and sim test
yomarion e50562c
Merge branch 'temp-branch' into chore/deploy-script-refactor-patch
yomarion c2bba88
mocks wasm not in out/
yomarion 5e9a9e6
workflow: push on master only
yomarion 59b7c1c
chore: removed out folder, mocks not built for release
yomarion 5ba3a44
fix: conversion_proxy bytes location
yomarion ae5985a
final cleanup
yomarion 29af79b
Update build-and-test.yml
yomarion 99ff2ea
Update build-and-test.yml
yomarion 9185a92
Update conversion_proxy/Cargo.toml
yomarion be6f540
Update mocks/Cargo.toml
yomarion f574a18
Update build-and-test.yml
yomarion f760dcd
Update conversion_proxy.rs
yomarion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this for debugging? Do you want to keep it in there?
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.
Yes, I plan to keep it here to show the commands that are run, so it's easier to understand what's going on, especially if something went wrong, but not only.