Merge pull request from ngham_decoder_feature #21
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
# | |
# unit-test-rsclib.yml | |
# | |
# Copyright The TTC 2.0 Contributors. | |
# | |
# This file is part of TTC 2.0. | |
# | |
# TTC 2.0 is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# TTC 2.0 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with TTC 2.0. If not, see <http://www.gnu.org/licenses/>. | |
# | |
# | |
name: RSCLib unit tests | |
on: | |
push: | |
branches: [dev_firmware] | |
pull_request: | |
branches: [master, dev, dev_firmware] | |
# 'workflow_dispatch' allows manual execution of this workflow under the repository's 'Actions' tab | |
workflow_dispatch: | |
jobs: | |
unit-tests: | |
name: RSCLib unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt install -y cmake libcmocka0 libcmocka-dev | |
- name: Compile the test | |
run: | | |
cd firmware/app/libs/rsclib-1.0/tests | |
cmake . | |
make | |
- name: Execute the test | |
run: ./firmware/app/libs/rsclib-1.0/tests/rsc_test |