Skip to content

Commit

Permalink
fix: path expansion in glob pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Aug 22, 2024
1 parent 3d80ef4 commit 2ee63ea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
uses: "actions/checkout@v4"

- name: "Install and run Bulloak"
uses: "smol-ninja/bulloak-toolchain@main"
uses: "smol-ninja/bulloak-toolchain@staging"
with:
tree-path: "test-workspace/**.tree"
test-dir: test-workspace

- name: "Bulloak summary"
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: "smol-ninja/bulloak-toolchain@v1"
with:
skip-modifiers: "false"
tree-path: "test-workspace/**.tree"
test-dir: "test-workspace"
```
## Inputs
Expand All @@ -35,7 +35,7 @@ jobs:
| `cache-restore-keys` | A custom key to identify the cache to restore | "${{ runner.os }}-cargo-" | No |
| `save-always` | Save the cache even if a prior step fails | true | No |
| `skip-modifiers` | Whether to ignore modifiers declaration in the Solidity test contracts | false | No |
| `tree-path` | The path to the BTT tree files. For ex. `test/**/**.tree` | | Yes |
| `test-dir` | The test directory | | Yes |

## Outputs

Expand Down
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ inputs:
default: "false"
description: "Whether to ignore modifiers declaration in the Solidity test contracts"
required: false
tree-path:
description: "The path to the BTT tree files"
test-dir:
description: "The test directory"
required: true

outputs:
Expand Down Expand Up @@ -74,12 +74,12 @@ runs:
- name: "Check that the Solidity tests conform to BTT spec"
env:
SKIP_MODIFIERS: ${{ inputs.skip-modifiers }}
TREE_PATH: ${{ inputs.tree-path }}
TEST_DIR: ${{ inputs.test-dir }}
shell: bash
run: |
echo "🌳 Checking the Solidity tests using Bulloak"
if [ "$SKIP_MODIFIERS" == "true" ]; then
bulloak check $TREE_PATH --skip-modifiers
find $TEST_DIR -name "*.tree" -print0 | xargs -0 -I {} sh -c 'bulloak check "{}" --skip-modifiers'
else
bulloak check $TREE_PATH
find $TEST_DIR -name "*.tree" -print0 | xargs -0 -I {} sh -c 'bulloak check "{}"'
fi
File renamed without changes.
File renamed without changes.

0 comments on commit 2ee63ea

Please sign in to comment.