0.4.0 #994
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
env: | |
- DOCKER_RUN_OPTS: --network static_test_net | |
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101' | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
URSIM_VERSION: 3.14.1.1031110 | |
- DOCKER_RUN_OPTS: --network static_test_net | |
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101' | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
URSIM_VERSION: 5.8.0.10253 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: start ursim | |
run: | | |
tests/resources/dockerursim/build_and_run_docker_ursim.sh $URSIM_VERSION | |
env: ${{matrix.env}} | |
- name: install gtest | |
run: sudo apt-get install -y libgtest-dev | |
- name: install boost | |
run: sudo apt-get install -y libboost-dev | |
- name: configure | |
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1 | |
env: | |
CXXFLAGS: -g -O2 -fprofile-arcs -ftest-coverage | |
CFLAGS: -g -O2 -fprofile-arcs -ftest-coverage | |
LDFLAGS: -fprofile-arcs -ftest-coverage | |
- name: build | |
run: cmake --build build --config Debug | |
- name: test | |
run: cd build && make test | |
- name: install gcovr | |
run: sudo apt-get install -y gcovr | |
- name: gcovr | |
run: cd build && gcovr -r .. | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
gcov: true | |
check_links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check URLs | |
run: | | |
.github/helpers/check_urls.sh -rI \ | |
--exclude-dir=.git \ | |
--exclude-dir=build/ \ | |
--exclude-dir=tests \ | |
--exclude=package.xml \ | |
--exclude-dir=CMakeModules \ | |
--exclude=tcp_socket.cpp \ | |
--exclude-dir=debian \ | |
--exclude=real_time.md | |
rosdoc_lite_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: ./.github/actions/rosdoc_lite_action | |