File tree Expand file tree Collapse file tree 1 file changed +71
-0
lines changed
Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint & Test
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ pull_request :
9+ types :
10+ - opened
11+ - reopened
12+ - synchronize
13+
14+ jobs :
15+ # test:
16+ # runs-on: ubuntu-latest
17+
18+ # steps:
19+ # - uses: actions/checkout@v4
20+
21+ # - name: Install dependencies
22+ # run: sudo apt-get install -y build-essential gcc-multilib g++-multilib
23+
24+ # - name: Install gcovr
25+ # run: pip install gcovr
26+
27+ # - name: Setup project
28+ # run: cmake -S ${TEST_DIR} -B ${BUILD_DIR} -DCMAKE_BUILD_TYPE=Debug
29+
30+ # - name: Build
31+ # run: cmake --build ${BUILD_DIR}
32+
33+ # # - name: Test
34+ # # working-directory: build
35+ # # run: ctest -V
36+
37+ # - name: Test with Coverage
38+ # working-directory: build
39+ # run: cmake --build ${BUILD_DIR} --target os_test_coverage
40+
41+ lint :
42+ runs-on : ubuntu-latest
43+
44+ strategy :
45+ matrix :
46+ folder :
47+ - src
48+ - examples
49+ - tests
50+
51+ steps :
52+ - uses : actions/checkout@v4
53+
54+ - name : Lint ${{ matrix.folder }}
55+ uses : jidicula/clang-format-action@v4.14.0
56+ with :
57+ clang-format-version : " 20"
58+ check-path : ${{ matrix.folder }}
59+
60+ increment_version :
61+ name : Increment Version
62+ uses : automas-dev/reusable-workflows/.github/workflows/increment_version.yml@main
63+ if : github.ref == 'refs/heads/main'
64+ secrets : inherit
65+
66+ needs :
67+ # - test
68+ - lint
69+
70+ permissions :
71+ contents : write
You can’t perform that action at this time.
0 commit comments