Skip to content

Commit

Permalink
CI: Move Optional Source Checks to Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Feb 12, 2025
1 parent 7f406f1 commit c037eb6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 29 deletions.
24 changes: 24 additions & 0 deletions .github/actions/checks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Source Checks
description: Run Various Checks on Source
inputs:
format:
description: Run Clang Format
default: 'false'
spelling:
description: Run Spelling
default: 'false'
runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- name: Run clang-format style check for C++ Source Files.
if: inputs.format == 'true'
uses: jidicula/clang-format-action@main
with:
clang-format-version: '17'
check-path: 'src'

- name: Check spelling
if: inputs.spelling == 'true'
uses: crate-ci/typos@master
18 changes: 0 additions & 18 deletions .github/workflows/clang-format-check.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/spelling.yml

This file was deleted.

0 comments on commit c037eb6

Please sign in to comment.