Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidson-Souza committed Sep 4, 2024
1 parent 578e107 commit ae1a226
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: make
run: autoreconf -fi && ./configure && make
- uses: actions/checkout@v3
- run: autoreconf -fi && ./configure && make

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: autoreconf -fi
- run: ./configure
- run: make check
- run: contrib/run_tests.sh

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: for file in $(find -name *.[c,h,hpp]); do clang-format --dry-run --Werror $file; done

- name: make test
run: autoreconf -fi && ./configure && make check && ./test_flat_file && ./test_forest

- name: linting
run: for file in $(find -name *.[c,h,hpp]); do clang-format --dry-run --Werror $file; done

0 comments on commit ae1a226

Please sign in to comment.