mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-19 01:52:00 +01:00
259d6bbd69
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>
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: 'scandir'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
branches:
|
|
- "master"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
scandir:
|
|
name: scandir
|
|
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: one
|
|
with:
|
|
scandir: testfiles/scandir
|
|
|
|
- name: Verify check
|
|
run: |
|
|
expect="testfiles/scandir/run[[:space:]]me.bash"
|
|
notexpect="testfiles/test.bash"
|
|
|
|
if [[ ! "${{ steps.one.outputs.files }}" =~ $expect ]];then
|
|
echo "::error:: Expected file $expect not found in ${{ steps.one.outputs.files }}"
|
|
exit 1
|
|
elif [[ "${{ steps.one.outputs.files }}" =~ $notexpect ]];then
|
|
echo "::error:: Expected file $notexpect found in ${{ steps.one.outputs.files }}"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Run ShellCheck
|
|
uses: ./
|
|
id: two
|
|
with:
|
|
scandir: './testfiles/scandir'
|
|
ignore_paths: ignore
|
|
|
|
- name: Verify check
|
|
run: |
|
|
expect="testfiles/scandir/test.bash"
|
|
notexpect="testfiles/test.bash"
|
|
|
|
if [[ ! "${{ steps.two.outputs.files }}" =~ $expect ]];then
|
|
echo "::error:: Expected file $expect not found in ${{ steps.two.outputs.files }}"
|
|
exit 1
|
|
elif [[ "${{ steps.two.outputs.files }}" =~ $notexpect ]];then
|
|
echo "::error:: Expected file $notexpect found in ${{ steps.two.outputs.files }}"
|
|
exit 1
|
|
fi
|