-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
442 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
labels: "Feature Request" | ||
--- | ||
|
||
## Checklist | ||
|
||
- [ ] This Feature Request only contains 1 request (if you have multiple open multiple feature requests). | ||
|
||
## The idea | ||
|
||
A good description of what you are suggesting. | ||
|
||
## Implementation | ||
|
||
How do you see this being implemented? | ||
|
||
## Alternatives | ||
|
||
Are there any alternative solutions or features you've considered? | ||
|
||
## Additional context | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: "Issue" | ||
about: For issue reporting. | ||
labels: "bug" | ||
--- | ||
|
||
## Describe the issue | ||
|
||
A clear and concise description of what the issue is. | ||
|
||
### Links | ||
|
||
- **Link to action run:** | ||
- **Link to action configuration:** |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 'additional_files' | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
|
||
jobs: | ||
additional_files: | ||
name: additional_files | ||
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: | ||
additional_files: run finish discovery | ||
ignore: ignore | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 'base' | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
|
||
jobs: | ||
base: | ||
name: base | ||
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: | ||
ignore: ignore | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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: | ||
ignore: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: 'scandir' | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
|
||
jobs: | ||
scandir: | ||
name: scandir | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run ShellCheck | ||
uses: ./ | ||
id: one | ||
with: | ||
scandir: testfiles/scandir | ||
|
||
- name: Verify check | ||
run: | | ||
expect="testfiles/scandir/test.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: 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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.