Skip to content

Commit ff4c4c4

Browse files
authored
Upgrade CI (#135)
1 parent ea635b7 commit ff4c4c4

1 file changed

Lines changed: 25 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,31 @@ jobs:
4040
colcon test --packages-select=rmw_microxrcedds --return-code-on-test-failure --ctest-args -E "(cpplint)|(lint_cmake)|(uncrustify)|(xmllint)"
4141
./build/rmw_microxrcedds/test/test-sizes 2> memanalisys_out
4242
43+
- name: Static memory
44+
continue-on-error: true
45+
if: github.event_name == 'pull_request'
46+
uses: machine-learning-apps/pr-comment@master
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
path: memanalisys_out
51+
52+
- name: Coverage
53+
run: |
54+
cd src/rmw-microxrcedds/
55+
gcovr -x -r . -o coverage.xml ../../build --exclude-unreachable-branches --exclude rmw_microxrcedds_c/test
56+
curl -s https://codecov.io/bash -o codecov.bash && chmod +x codecov.bash
57+
./codecov.bash -t ${{ secrets.CODECOV_TOKEN }}
58+
59+
rmw_microxrcedds_uncrustify:
60+
runs-on: ubuntu-20.04
61+
container: microros/micro-ros-agent:foxy
62+
63+
steps:
64+
- uses: actions/checkout@v2
65+
with:
66+
path: src/rmw-microxrcedds
67+
4368
- name: Uncrustify
4469
run: |
4570
# Install Uncrustify
@@ -55,18 +80,4 @@ jobs:
5580
curl -l https://raw.githubusercontent.com/eProsima/cpp-style/master/uncrustify.cfg -o uncrustify.cfg
5681
find src test include \( -name "*.cpp" -o -name "*.c" -o -name "*.h" -o -name "*.hpp" \) -exec uncrustify -c uncrustify.cfg --check {} +
5782
58-
- name: Static memory
59-
continue-on-error: true
60-
if: github.event_name == 'pull_request'
61-
uses: machine-learning-apps/pr-comment@master
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
with:
65-
path: memanalisys_out
6683
67-
- name: Coverage
68-
run: |
69-
cd src/rmw-microxrcedds/
70-
gcovr -x -r . -o coverage.xml ../../build --exclude-unreachable-branches --exclude rmw_microxrcedds_c/test
71-
curl -s https://codecov.io/bash -o codecov.bash && chmod +x codecov.bash
72-
./codecov.bash -t ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)