Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Actuate all three motors of the seat #74

Actuate all three motors of the seat

Actuate all three motors of the seat #74

# /********************************************************************************
# * Copyright (c) 2022 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License 2.0 which is available at
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/
name: seat-service-seatcontroller-tests
on:
pull_request:
paths:
- ".github/workflows/seat_service_seatctrl_test*"
- "seat_service/src/lib/seat_adjuster/**"
- "seat_service/CMakeLists.txt"
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# NOTE: CodeCoverage requires debug build...
BUILD_TYPE: Debug
jobs:
build:
# reduce runtime requirements from libc/libc++
runs-on: ubuntu-20.04
name: Build
steps:
- name: adding github workspace as safe directory
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
.github/workflows/scripts/install-ci-tooling.sh
- name: Run build
working-directory: ${{github.workspace}}/seat_service
run: ./build-seatctrl.sh
shell: bash
- name: cobertura-report
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
# NOTE: cobertura-action have a fix for node 12 deprecation warning, but it's not released yet.
# Using a pinned commit instead of master for security purposes, to be updated if they release new version
uses: 5monkeys/cobertura-action@18d911b62098eafd8b9db93d6c74194556cc3515
with:
path: ${{github.workspace}}/seat_service/build_seat_controller/x86_64/report_codecov_vservice-seat-ctrl.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 70
- name: Upload Code coverage (html)
uses: actions/upload-artifact@v3
with:
name: report_codecov_vservice-seat-ctrl
path: |
${{github.workspace}}/seat_service/build_seat_controller/x86_64/report_codecov_*/**
if-no-files-found: warn
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: report_test_vservice-seat-ctrl
path: |
${{github.workspace}}/seat_service/build_seat_controller/x86_64/Testing/
if-no-files-found: warn