Skip to content
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

fix: path expansion in glob pattern #5

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
tree-path: 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"
tree-path: "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 |
| `tree-path` | The test directory. This should be `test`. | | Yes |

## Outputs

Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:
description: "Whether to ignore modifiers declaration in the Solidity test contracts"
required: false
tree-path:
description: "The path to the BTT tree files"
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.tree-path }}
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.
Loading