diff --git a/.github/workflows/test-and-cover.yml b/.github/workflows/test-and-cover.yml index 6bf9b174..ba455c54 100644 --- a/.github/workflows/test-and-cover.yml +++ b/.github/workflows/test-and-cover.yml @@ -65,25 +65,8 @@ jobs: - name: Restore dependencies for unit tests run: | - mkdir -p ./Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests/bin/Release/net6.0/runtimes/linux-x64/native - dotnet restore Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests.csproj - dotnet restore Yubico.Core/tests/Yubico.Core.UnitTests.csproj - ls -l ./Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests/bin/Release/net6.0/runtimes/linux-x64/native - - - name: Export LD LIBRARY PATH if on ubuntu-latest - if: matrix.os == 'ubuntu-latest' - run: | - ls $HOME/.nuget/packages/yubico.nativeshims/1.10.0/runtimes/linux-x64/native - echo "LD_LIBRARY_PATH=$HOME/.nuget/packages/yubico.nativeshims/1.10.0/runtimes/linux-x64/native/libYubico.NativeShims.so:$LD_LIBRARY_PATH" >> $GITHUB_ENV - cp $HOME/.nuget/packages/yubico.nativeshims/1.10.0/runtimes/linux-x64/native/libYubico.NativeShims.so ./Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests/bin/Release/net6.0/runtimes/linux-x64/native/libYubico.NativeShims.so - ls -l ./Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests/bin/Release/net6.0/runtimes/linux-x64/native - ls -l $HOME/.nuget/packages/yubico.nativeshims/1.10.0/runtimes/linux-x64/native - - - - name: Check LD_LIBRARY_PATH - if: matrix.os == 'ubuntu-latest' - run: | - echo "LD LIBRARY PATH: $LD_LIBRARY_PATH" + dotnet restore Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests.csproj --configuration Release + dotnet restore Yubico.Core/tests/Yubico.Core.UnitTests.csproj --configuration Release - name: Run Tests on Ubuntu if: matrix.os == 'ubuntu-latest'