mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-02-07 11:01:13 +01:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
45 lines
1017 B
YAML
45 lines
1017 B
YAML
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/checkout@v4.1.1
|
|
|
|
- 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
|