Skip to content

Commit

Permalink
restrict path
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Jul 17, 2024
1 parent f6ca90c commit 179ffef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dex_router_osmosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ on:
pull_request:
branches:
- main
paths:
- 'smart-contracts/contracts/dex-router-osmosis/**'
push:
branches:
- main
workflow_dispatch:

jobs:
call-workflow:
dex-router-unit-test:
uses: ./.github/workflows/unittest_rust.yml
with:
contract: 'dex-router-osmosis'
8 changes: 6 additions & 2 deletions .github/workflows/unittest_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Unit Test (rust)

on:
workflow_call:
inputs:
contract:
required: true
type: string

defaults:
run:
Expand All @@ -17,8 +21,8 @@ jobs:
uses: technote-space/[email protected]
with:
PATTERNS: |
- **/**.rs
- **/Cargo.toml
**/**.rs
**/Cargo.toml
- name: Install Rust
if: env.GIT_DIFF
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit 179ffef

Please sign in to comment.