Bump actions/checkout from 4.1.0 to 4.1.1 #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'ignore_names' | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
permissions: {} | |
jobs: | |
ignore_names: | |
name: ignore_names | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Run ShellCheck | |
uses: ./ | |
id: check | |
with: | |
ignore_paths: ignore | |
ignore_names: ignore_single_file.sh | |
- name: Verify check | |
run: | | |
expect="testfiles/test.bash" | |
notexpect="testfiles/ignore_single_file.sh" | |
if [[ ! "${{ steps.check.outputs.files }}" =~ $expect ]];then | |
echo "::error:: Expected file $expect not found in ${{ steps.check.outputs.files }}" | |
exit 1 | |
elif [[ "${{ steps.check.outputs.files }}" =~ $notexpect ]];then | |
echo "::error:: Expected file $notexpect found in ${{ steps.check.outputs.files }}" | |
exit 1 | |
fi |