Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
284de4ac
Commit
284de4ac
authored
Aug 17, 2020
by
neil
Browse files
add actions
parent
19c43451
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/ci.yml
0 → 100644
View file @
284de4ac
name
:
CI
on:[push, pull_request]
jobs
:
formatCheck
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Install Shellcheck
run
:
sudo apt-get install -y shellcheck
-
name
:
DoShellcheck
run
:
shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"
-
name
:
Install shfmt
with
:
SHFMT_URL=https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64
run
:
curl -sSL ${{ SHFMT_URL }} -o ~/shfmt && chmod +x ~/shfmt
-
name
:
shfmt
run
:
~/shfmt -l -w -i 2 . ; git diff --exit-code && echo "shfmt OK"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment