From 98b3ab67db17aa64c5732f62ea5203b8d9b06d23 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Wed, 14 Dec 2022 01:17:25 +0400 Subject: Non single file tests --- .github/workflows/build-test.yml | 3 +-- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 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 @@ true LICENSE README.md + false False -- cgit v1.2.3