Skip to content

Commit

Permalink
Add shellcheck to CI
Browse files Browse the repository at this point in the history
This script is composed of many shell scripts and shellcheck can be used
to improve their quality. The workflow is copied from forklift.
  • Loading branch information
ekohl committed Aug 22, 2023
1 parent c25b58b commit 582d3ba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Differential ShellCheck

on:
pull_request:
branches:
- master

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Repository checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 582d3ba

Please sign in to comment.