2020-10-25 21:00:46 +01:00
|
|
|
name: 'check_together'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["master"]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check_together:
|
|
|
|
name: check_together
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run ShellCheck
|
|
|
|
uses: ./
|
|
|
|
id: check
|
|
|
|
with:
|
2021-11-14 11:01:29 +01:00
|
|
|
ignore_paths: ignore
|
2020-10-25 21:00:46 +01:00
|
|
|
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
|