1
0
Fork 0
mirror of https://github.com/ludeeus/action-shellcheck.git synced 2024-08-16 10:09:53 +02:00
shellcheck/.github/workflows/additional_files.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2020-10-25 21:00:46 +01:00
name: 'additional_files'
on:
push:
2022-11-06 20:50:21 +01:00
branches:
- "master"
2020-10-25 21:00:46 +01:00
pull_request:
2022-11-06 20:50:21 +01:00
branches:
- "master"
2020-10-25 21:00:46 +01:00
permissions: {}
2020-10-25 21:00:46 +01:00
jobs:
additional_files:
name: additional_files
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
2020-10-25 21:00:46 +01:00
- name: Run ShellCheck
uses: ./
id: check
with:
additional_files: run finish discovery
ignore_paths: ignore
2020-10-25 21:00:46 +01:00
scandir: testfiles
- name: Verify check
run: |
expect="testfiles/scandir/run"
if [[ ! "${{ steps.check.outputs.files }}" =~ testfiles/scandir/run ]];then
echo "::error:: Expected file testfiles/scandir/run not found in ${{ steps.check.outputs.files }}"
exit 1
elif [[ ! "${{ steps.check.outputs.files }}" =~ testfiles/scandir/finish ]];then
echo "::error:: Expected file testfiles/scandir/finish not found in ${{ steps.check.outputs.files }}"
exit 1
elif [[ ! "${{ steps.check.outputs.files }}" =~ testfiles/scandir/discovery ]];then
echo "::error:: Expected file testfiles/scandir/discovery not found in ${{ steps.check.outputs.files }}"
exit 1
fi