Skip to content

Commit

Permalink
ci: add Shell script linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Sep 18, 2024
1 parent 7638001 commit 7afc917
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint-shell-script.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Generated by Gabo (https://github.com/ashishb/gabo)
---
# Run this locally with act - https://github.com/nektos/act
# act -j lintShellScript
name: Lint Shell scripts

on: # yamllint disable-line rule:truthy
push:
branches: [main, master]
paths:
- '**.sh'
- '**.bash'
- '.github/workflows/lint-shell-script.yaml'
pull_request:
branches: [main, master]
paths:
- '**.sh'
- '**.bash'
- '.github/workflows/lint-shell-script.yaml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

lintShellScript:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run ShellCheck
uses: ludeeus/[email protected]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# macOS and iOS Security Related Tools [![Awesome](https://awesome.re/badge-flat.svg)](https://awesome.re)

[![Test](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/test.yaml/badge.svg)](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/test.yaml)
[![Lint Markdown](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/lint-markdown.yaml/badge.svg)](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/lint-markdown.yaml)
[![Lint Shell scripts](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/lint-shell-script.yaml/badge.svg)](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/lint-shell-script.yaml)
[![Lint YAML](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/lint-yaml.yaml/badge.svg)](https://github.com/ashishb/osx-and-ios-security-awesome/actions/workflows/lint-yaml.yaml)

## Contents
Expand Down

0 comments on commit 7afc917

Please sign in to comment.