Skip to content

Commit ae1a226

Browse files
update github workflow
1 parent 578e107 commit ae1a226

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/c-cpp.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,24 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
13-
1412
steps:
15-
- uses: actions/checkout@v3
16-
17-
- name: make
18-
run: autoreconf -fi && ./configure && make
13+
- uses: actions/checkout@v3
14+
- run: autoreconf -fi && ./configure && make
15+
16+
test:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- run: autoreconf -fi
22+
- run: ./configure
23+
- run: make check
24+
- run: contrib/run_tests.sh
25+
26+
lint:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v3
30+
- run: for file in $(find -name *.[c,h,hpp]); do clang-format --dry-run --Werror $file; done
1931

20-
- name: make test
21-
run: autoreconf -fi && ./configure && make check && ./test_flat_file && ./test_forest
22-
23-
- name: linting
24-
run: for file in $(find -name *.[c,h,hpp]); do clang-format --dry-run --Werror $file; done

0 commit comments

Comments
 (0)