From 68aa2ad12a64ea72545b28fa3d3128ff4293ef9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Wei=C3=9F?= <72068105+Sandoun@users.noreply.github.com> Date: Tue, 13 Jun 2023 11:56:09 +0200 Subject: [PATCH] Unit test CI --- .github/workflows/test-on-hardware.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test-on-hardware.yml b/.github/workflows/test-on-hardware.yml index d746f9c..a477a6b 100644 --- a/.github/workflows/test-on-hardware.yml +++ b/.github/workflows/test-on-hardware.yml @@ -8,6 +8,7 @@ on: # - master jobs: + check-plcs-online: runs-on: [self-hosted, linux, x64, womed-local-linux] steps: @@ -17,3 +18,19 @@ jobs: run: ping 192.168.115.212 -w 5 - name: 'Ping FPX-C30T' run: ping 192.168.115.213 -w 5 + + run-unit-tests: + runs-on: [self-hosted, linux, x64, womed-local-linux] + strategy: + matrix: + dotnet-version: [ '3.0', '3.1.x', '5.0.x' ] + steps: + - uses: actions/checkout@v3 + - name: 'Setup dotnet ${{ matrix.dotnet-version }}' + uses: actions/setup-dotnet@v2 + with: + dotnet-version: ${{ matrix.dotnet-version }} + - name: 'Run tests' + run: | + cd .\MewtocolTests + dotnet test --logger:"console;verbosity=detailed"