Add type for each item of multiSelectSection #720
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/[email protected] | |
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@v2 | |
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 | |
Windows: | |
name : Run Unit tests for Windows | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Yadoms build script | |
uses: Yadoms/[email protected] | |
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@v2 | |
with: | |
name: Windows-UnitTests | |
path: ./tests/unit/builds | |
- name: Run Unit tests for Windows | |
shell: cmd | |
run: | | |
cd tests/unit/builds/RELEASE | |
yadomsTests.exe -r detailed -e results.txt | |
- name: Archive unittests report artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Windows-UnitTests-Report | |
path: ./tests/unit/builds/RELEASE/results.txt |