CI: Move Optional Source Checks to Actions

This commit is contained in:
Holden
2025-02-12 03:28:59 -05:00
committed by Holden Ramsey
parent 7f406f1d41
commit c037eb6a1f
3 changed files with 24 additions and 29 deletions
+24
View File
@@ -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
View File
@@ -1,18 +0,0 @@
name: clang-format Check
on: [workflow_dispatch]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'test'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C++ Source Files.
uses: jidicula/clang-format-action@main
with:
clang-format-version: '17'
check-path: ${{ matrix.path }}
-11
View File
@@ -1,11 +0,0 @@
name: Typos
on: [workflow_dispatch]
jobs:
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master