Skip to content

Commit

Permalink
Making sure unit tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
Fur0rem committed Jan 24, 2024
1 parent a20c9b3 commit 197214f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Format files
run: |
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-format -i -style=file src/*.c
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-tidy -fix --config-file=.clang-tidy src/*.c
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-format -i -style=file src/*.c main.c src/*.h
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-tidy -fix --config-file=.clang-tidy src/*.c main.c src/*.h
- name: Commit changes
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
- name: Run Tests
run: |
error=0
for test in test/bin/*; do
valgrind --leak-check=full --error-exitcode=1 --show-leak-kinds=all --errors-for-leak-kinds=all $test
if [ $? -ne 0 ]; then
exit 1
$error=1
fi
done
exit $error

0 comments on commit 197214f

Please sign in to comment.