Extend Git Actions with UT for Linux #4
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: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install packages | |
run: sudo apt -y install git g++ cmake libsqlite3-dev gcovr | |
- name: Clone aquamarine repo | |
run: git clone https://github.com/MaksymT17/aquamarine.git | |
- name: Build artifacts with Cmake | |
run: | | |
cd aquamarine | |
./build.sh | |
- name: Run unit tests | |
run: | | |
cd aquamarine/unit_tests | |
./prepare_build.sh | |
./make_and_run_tests.sh | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: | | |
ls | |
aquamarine/unit_tests/build/am_ut_report.xml | |
test-results/**/*.xml | |
test-results/**/*.json |