Separate clang-format test into its own workflow (#283)

* Rework workflow dependencies
This commit is contained in:
Rickey
2025-12-06 13:59:55 -08:00
committed by GitHub
parent 687d77e18a
commit a82bd671de
4 changed files with 28 additions and 14 deletions
+7 -4
View File
@@ -21,14 +21,17 @@ on:
default: true
jobs:
run-tests-job:
name: Run tests
uses: ./.github/workflows/run_tests_ci_workflow.yml
clang-format-job:
name: Run clang-format test
uses: ./.github/workflows/clang_format_ci_workflow.yml
unit-tests-job:
name: Run unit tests
uses: ./.github/workflows/unit_tests_ci_workflow.yml
build:
name: Build ROM
runs-on: ubuntu-latest
needs: run-tests-job
steps:
- name: Checkout repository
uses: actions/checkout@v5
@@ -1,12 +1,12 @@
name: Run Tests
name: Run Clang Format Test
on:
workflow_dispatch:
workflow_call:
jobs:
run_tests:
name: Run Tests
run-test:
name: Verify code formatting
runs-on: ubuntu-latest
steps:
- name: Install clang-format
@@ -16,7 +16,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v5
- name: Clang Format
- name: Run clang-format
run: >
clang-format --dry-run -Werror
include/bitset.h source/bitset.c
@@ -31,8 +31,3 @@ jobs:
# Currently contains only the code that has been formatted to conform
# When all existing code conforms, change to this:
# run: clang-format --dry-run -Werror include/*.h source/*.c
- name: Run Tests
run: cd tests && ./run_tests.sh
@@ -17,10 +17,10 @@ jobs:
nightly:
name: Deploy nightly
needs: build-job
strategy:
fail-fast: false
runs-on: ubuntu-latest
needs: build-job
steps:
- name: Download the build output
uses: actions/download-artifact@v5
@@ -0,0 +1,16 @@
name: Run Unit Tests
on:
workflow_dispatch:
workflow_call:
jobs:
run-unit-tests:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Run Unit Tests
run: cd tests && ./run_tests.sh