Trace test suite #806
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: Unit tests | |
on: push | |
jobs: | |
linux: | |
name : Unit tests for Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Generate unittests binary | |
uses: Yadoms/build-yadoms-action@v4.0.1 | |
id: yadoms_build_step | |
with: | |
buildImage: ghcr.io/yadoms/build_for_linux:latest | |
registry: ghcr.io | |
username: ${{ secrets.CONTAINER_GH_LOGIN }} | |
password: ${{ secrets.CONTAINER_GH_TOKEN }} | |
entrypoint: 'sh /work/build-scripts/linux/entrypoint_docker_unittests.sh' | |
- name: Archive unittests artifacts | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: Linux-UnitTests | |
path: ./tests/unit/builds | |
- name: Run unit tests | |
run: | | |
echo "Running unittests for yadoms ${{ steps.yadoms_build_step.outputs.yadomsVersion }}" | |
cd tests/unit/builds | |
./yadomsTests -l test_suite | |
Windows: | |
name : Run Unit tests for Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Yadoms build script | |
uses: Yadoms/build-yadoms-windows-action@v2.0.1 | |
id: yadoms_build_step | |
with: | |
buildImage: ghcr.io/yadoms/build_for_windows:latest | |
registry: ghcr.io | |
username: ${{ secrets.CONTAINER_GH_LOGIN }} | |
password: ${{ secrets.CONTAINER_GH_TOKEN }} | |
entrypoint: 'powershell.exe -Command C:\work\build-scripts\windows\entrypoint_docker_unittests.ps1' | |
- name: Archive unittests artifacts | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: Windows-UnitTests | |
path: ./tests/unit/builds | |
- name: Run Unit tests for Windows | |
shell: cmd | |
run: | | |
cd tests/unit/builds/RELEASE | |
yadomsTests.exe -l test_suite -r detailed -e results.txt | |
- name: Archive unittests report artifacts | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: Windows-UnitTests-Report | |
path: ./tests/unit/builds/RELEASE/results.txt |