CI: Move Optional Source Checks to Actions
This commit is contained in:
@@ -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
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user