-
Notifications
You must be signed in to change notification settings - Fork 1.5k
45 lines (45 loc) · 1.2 KB
/
sh-checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: static analysis for shell scripts using shellcheck and shfmt
on:
push:
branches:
- master
- develop
paths-ignore:
- "**/LICENSE"
- "**/README.md"
- "**/README.zh-Hans-CN.md"
pull_request:
branches:
- master
- develop
jobs:
sh-checker:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Run the sh-checker
uses: luizm/action-sh-checker@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHFMT_OPTS: -i 2 -ci -sr
with:
sh_checker_comment: true
sh_checker_exclude: "LICENSE README.md README.zh-Hans-CN.md"
filed-test:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Filed-test on Ubuntu 18.04
run: |
sudo bash install-release.sh
sudo bash install-release.sh --check
sudo bash install-dat-release.sh
- name: Filed-test on Rocky Linux 8.6
uses: docker://rockylinux:8.6
with:
args: bash install-release.sh
- name: Filed-test on Arch Linux
uses: docker://archlinux:latest
with:
args: bash install-release.sh