Skip to content

Commit

Permalink
refactor cli backend
Browse files Browse the repository at this point in the history
  • Loading branch information
prybalko committed Apr 27, 2022
1 parent 16668f2 commit b0a3ee5
Show file tree
Hide file tree
Showing 66 changed files with 674 additions and 618 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/rust-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ runs:

- name: Rust Cache
uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641
with:
working-directory: ./rust
6 changes: 2 additions & 4 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ${{ env.MANIFEST_PATH }} --all -- --check
args: --all -- --check

- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path ${{ env.MANIFEST_PATH }} -- -D warnings
args: -- -D warnings

- name: Cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path ${{ env.MANIFEST_PATH }}

- name: Cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --manifest-path ${{ env.MANIFEST_PATH }}
16 changes: 14 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,23 @@ jobs:
fi
echo "::set-output name=switched::$switched"
- name: ⚙ Build metadata-cli
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: ⚙ Run QR updater
run: make updater
uses: actions-rs/cargo@v1
with:
command: run
args: --release -- update

- name: ⚙ Run cleaner
run: make cleaner
uses: actions-rs/cargo@v1
with:
command: run
args: --release -- clean

- name: 📌 Commit changes if PR exists
if: ${{ steps.checkout-pr.outputs.switched == 'true' }}
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,14 @@ jobs:

- uses: ./.github/workflows/rust-install

- name: ⚙ Build metadata-cli
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: ⚙ Run verifier
run: make verifier
uses: actions-rs/cargo@v1
with:
command: run
args: --release -- verify
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ yarn-error.log*

# Auto-generated data file for frontend
src/chains.json

# Rust build
target
Loading

0 comments on commit b0a3ee5

Please sign in to comment.