Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/aomp-shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: AOMP Lint

on:
push:
pull_request:

jobs:
aomp-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck

- name: Run shellcheck
run: |
find . -name "*.sh" | xargs shellcheck -S info {} \;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The syntax is wrong, which must be

Suggested change
find . -name "*.sh" | xargs shellcheck -S info {} \;
find . -name "*.sh" -exec shellcheck -S info {} +

or

Suggested change
find . -name "*.sh" | xargs shellcheck -S info {} \;
find . -name "*.sh" | xargs shellcheck -S info