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 437a58a
Show file tree
Hide file tree
Showing 2 changed files with 37 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]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 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 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 437a58a

Please sign in to comment.