mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2024-08-16 10:09:53 +02:00
cd81f4475a
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
44 lines
No EOL
1,004 B
YAML
44 lines
No EOL
1,004 B
YAML
name: 'check_together'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
branches:
|
|
- "master"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
check_together:
|
|
name: check_together
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.0
|
|
|
|
- name: Run ShellCheck
|
|
uses: ./
|
|
id: check
|
|
with:
|
|
ignore_paths: ignore
|
|
check_together: true
|
|
|
|
- name: Verify check
|
|
run: |
|
|
expect="testfiles/test.bash"
|
|
notexpect="testfiles/ignore/ignore.bash"
|
|
|
|
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 |