File tree 2 files changed +25
-0
lines changed
actions/install-shellcheck
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Install ShellCheck
2
+ description : " installs shellcheck. Supports: Ubuntu, MacoS, and Windows"
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : install shellcheck -- ubuntu-latest
7
+ if : runner.os == "Linux"
8
+ uses : awalsh128/cache-apt-pkgs-action@latest
9
+ with :
10
+ packages : shellcheck
11
+ version : 1.0
12
+ - name : install shellcheck -- macos-latest
13
+ if : runner.os == "macOS"
14
+ run : brew install shellcheck
15
+ - name : install shellcheck -- Windows
16
+ if : runner.os == "Windows"
17
+ shell : powershell
18
+ run : |
19
+ gh release download -R koalaman/shellcheck -p 'shellcheck-v*.zip' -o shellcheck-latest.zip
20
+ 7z x shellcheck-latest.zip
21
+ echo $(Get-Location).Path >> "$GITHUB_PATH"
22
+
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
pull_request :
8
+ workflow_dispatch :
8
9
9
10
jobs :
10
11
format :
60
61
os : [windows-latest, macos-latest, ubuntu-latest]
61
62
steps :
62
63
- uses : actions/checkout@v4
64
+ - uses : ./.github/actions/install-shellcheck
63
65
- run : git config --global core.autocrlf false
64
66
- name : Update Rust
65
67
run : rustup update stable && rustup default stable
73
75
os : [windows-latest, macos-latest, ubuntu-latest]
74
76
steps :
75
77
- uses : actions/checkout@v4
78
+ - uses : ./.github/actions/install-shellcheck
76
79
- run : git config --global core.autocrlf false
77
80
- name : Update Rust
78
81
run : rustup update stable && rustup default stable
You can’t perform that action at this time.
0 commit comments