Skip to content

Commit

Permalink
Added GitHub Actions for script and markdown linting
Browse files Browse the repository at this point in the history
  • Loading branch information
primalbeing committed Feb 7, 2025
1 parent 3dabb31 commit a1d81e1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
shellcheck:
name: Shell Script Linter
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install ShellCheck
run: sudo apt-get install -y shellcheck

- name: Run ShellCheck on scripts
run: shellcheck Scripts/* Scripts/Setupscripts/* || exit 1

markdownlint:
name: Markdown Linter
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install markdownlint-cli
run: npm install -g markdownlint-cli

- name: Run MarkdownLint
run: markdownlint **/*.md || exit 1

0 comments on commit a1d81e1

Please sign in to comment.