fixing relocatable module, timers are not working correctly #102
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: Yasboot - System Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
execute_system_tests: | |
runs-on: ubuntu-latest | |
env: | |
SONAR_SERVER_URL: "https://sonarcloud.io" | |
container: | |
image: ghcr.io/matgla/yasboot:1.4 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Prepare Yasboot project | |
shell: bash | |
run: | | |
mkdir build | |
- name: Generate CMake project | |
shell: bash | |
working-directory: build | |
run: | | |
cmake .. -DUSE_CONFIG=host -DENABLE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug -GNinja | |
- name: Execute tests | |
shell: bash | |
working-directory: build | |
run: | |
ninja st | |
- name: Generate coverage report | |
shell: bash | |
run: | | |
gcovr --verbose --sonarqube coverage_for_sonar.xml | |
- name: Execute SonarScanner | |
shell: bash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: | |
sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}" --define sonar.cfamily.compile-commands="build/compile_commands.json" --define sonar.coverageReportPaths="coverage_for_sonar.xml" --define sonar.cpd.exclusions=**/tests/**,**/docs/**,**.py --define sonar.exclusions=**/test/**,**/docs/**,**.py | |