Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Jul 17, 2024
1 parent f537d15 commit 72a662b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/dex_router_osmosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,13 @@ on:
pull_request:
branches:
- main
- feat/*
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test-rust:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Get git diff
uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.rs
- name: Install Rust
if: env.GIT_DIFF
uses: dtolnay/rust-toolchain@stable
- name: Run unit-tests
if: env.GIT_DIFF
run: cd $smart-contractcs/contracts/dex-router-osmosis && cargo unit-test

call-workflow-passing-data:
uses: ./.github/workflows/unittest_rust.yml@test-rust
with:
contract: 'dex-router-osmosis'
1 change: 1 addition & 0 deletions .github/workflows/unittest_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
PATTERNS: |
**/**.rs
**/Cargo.toml
- name: Install Rust
if: env.GIT_DIFF
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit 72a662b

Please sign in to comment.