diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-12-14 00:17:25 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-12-14 00:17:25 +0300 |
commit | 98b3ab67db17aa64c5732f62ea5203b8d9b06d23 (patch) | |
tree | 82e5523375d2862297c3ee340db1f21dec9ca1e4 | |
parent | 114ce964a6af974302a49f126bf3e08e906f998a (diff) |
Non single file tests
-rw-r--r-- | .github/workflows/build-test.yml | 3 | ||||
-rw-r--r-- | .github/workflows/release.yml | 22 | ||||
-rw-r--r-- | NesTiler/NesTiler.csproj | 1 |
3 files changed, 24 insertions, 2 deletions
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 091aed9..4da33f6 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -69,7 +69,6 @@ jobs: runs-on: ${{ matrix.host }}
env:
TESTS_PATH: ./Tests
- CONFIGURATION: Release
TESTS_CONFIGURATION: Debug
steps:
- name: Fix line endings
@@ -81,7 +80,7 @@ jobs: with:
dotnet-version: 6.0.x
- name: Tests
- run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }} -p:PublishSingleFile=true
+ run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }}
upload-to-pages:
needs: tests
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 680a421..516112f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,29 @@ on: workflow_dispatch:
jobs:
+ tests:
+ needs: build
+ strategy:
+ matrix:
+ host: [windows-latest, ubuntu-latest, macos-latest]
+ runs-on: ${{ matrix.host }}
+ env:
+ TESTS_PATH: ./Tests
+ TESTS_CONFIGURATION: Debug
+ steps:
+ - name: Fix line endings
+ run: git config --global core.autocrlf false
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v2
+ with:
+ dotnet-version: 6.0.x
+ - name: Tests
+ run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }}
+
create-release:
+ needs: test
runs-on: ubuntu-latest
steps:
- name: Create Release
diff --git a/NesTiler/NesTiler.csproj b/NesTiler/NesTiler.csproj index 1f738fb..096570c 100644 --- a/NesTiler/NesTiler.csproj +++ b/NesTiler/NesTiler.csproj @@ -9,6 +9,7 @@ <PublishReadyToRun>true</PublishReadyToRun>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
+ <SelfContained>false</SelfContained>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|