mirror of
https://github.com/Hill-98/aliyun-openapi-bash-sdk.git
synced 2025-10-24 19:19:19 +08:00
Add Linter to GitHub Actions
This commit is contained in:
23
.github/workflows/linter.yml
vendored
Normal file
23
.github/workflows/linter.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Linter
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/linter.yml'
|
||||||
|
- '**.sh'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/linter.yml'
|
||||||
|
- '**.sh'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@master
|
||||||
|
env:
|
||||||
|
SHELLCHECK_OPTS: -x
|
||||||
|
with:
|
||||||
|
ignore_paths: ./test/bats/** ./test/test_helper/**
|
||||||
Reference in New Issue
Block a user