CI driven development #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
paths: | |
- .github/**/* | |
- Makefile | |
- ./**/*.c | |
- ./**/*.h | |
- ./**/mocks/* | |
workflow_dispatch: | |
jobs: | |
test-release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup clang | |
shell: bash | |
run: | | |
sudo apt update | |
sudo apt install clang-15 | |
- shell: bash | |
run: | | |
gcc -v | |
clang-15 -v | |
- name: Run tests | |
shell: bash | |
run: | | |
set -ex | |
alias clang=clang-15 | |
alias leaks=: # leaks is a macos only software | |
make test | |
test-debug: | |
name: Debug | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup clang | |
shell: bash | |
run: | | |
sudo apt update | |
sudo apt install clang-15 | |
- shell: bash | |
run: | | |
gcc -v | |
clang-15 -v | |
- name: Run tests | |
shell: bash | |
run: | | |
set -ex | |
alias clang=clang-15 | |
alias leaks=: # leaks is a macos only software | |
make test_dbg |