Skip to content

Commit

Permalink
build: add tests and format check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Oct 24, 2023
1 parent d937702 commit 7b71abd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@ on:
branches: [ '**' ]

jobs:
run_tests:
name: Run unit tests on ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build & run tests
run: make test

check_format:
name: Check codebase format with clang-format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run clang-format dry-run
run: find . -iname "*.h" -o -iname "*.c" | xargs clang-format -n

modular_build:
name: Modular build on ubuntu-latest
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7b71abd

Please sign in to comment.