-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
13d7552
commit 849ed27
Showing
4 changed files
with
59 additions
and
1 deletion.
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,8 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk -U upgrade && apk add shellcheck bash | ||
|
||
RUN mkdir /code | ||
WORKDIR /code | ||
|
||
CMD ./scripts/lint-sh.sh |
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,33 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clear up some space on runner | ||
run: | | ||
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 | ||
df -h | ||
sudo apt-get remove -y '^dotnet-.*' | ||
sudo apt-get remove -y '^libclang.*' | ||
sudo apt-get remove -y '^llvm-.*' | ||
sudo apt-get remove -y '^mongodb-.*' | ||
sudo apt-get remove -y '^mysql-.*' | ||
sudo apt-get remove -y '^postgresql-.*' | ||
sudo apt-get remove -y 'php.*' | ||
sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel | ||
sudo apt-get autoremove -y | ||
sudo apt-get clean | ||
rm -rf /usr/share/dotnet/ | ||
df -h | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: run lint | ||
run: | | ||
make lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
SH_SCRIPTS="$(find . -name '*.sh' -o -name '.bashrc' -o -name '.bash_profile')" | ||
EXIT_STATUS=0 | ||
|
||
for script in ${SH_SCRIPTS}; do | ||
shellcheck "${script}" && continue | ||
EXIT_STATUS=1 | ||
done | ||
|
||
exit "${EXIT_STATUS}" |