diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-13 18:39:48 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-13 18:39:48 +0300 |
commit | 4bf011a542224167d94e3dab04c77a2fe4bba113 (patch) | |
tree | a0bd17d462fe152e8ae1bdc02a1f7ce7ae5e6c54 /.github | |
parent | 5e341860f93f4cff4025b899254a2091132e4e3b (diff) |
Workflow tests
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-test.yml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d1645f8..cefa515 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -26,6 +26,7 @@ jobs: env: APP_NAME: nestiler PROJECT_PATH: ./NesTiler + TESTS_PATH: ./Tests OUTPUT_DIR: output CONFIGURATION: Release OUTPUT_SUBDIR: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.sc }} @@ -42,14 +43,12 @@ jobs: env: SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true -p:PublishTrimmed=True' || '--no-self-contained' }} run: dotnet publish ${{ env.PROJECT_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true $SC_OPS -p:IncludeAllContentForSelfExtract=true -o ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }} - - name: Simple test + - name: Tests if: | (matrix.host == 'ubuntu-latest' && matrix.os == 'linux' && matrix.arch != 'arm') || (matrix.host == 'macos-latest' && matrix.os == 'osx' && matrix.arch != 'arm') || (matrix.host == 'windows-latest' && matrix.os == 'win' && matrix.arch != 'arm') - working-directory: ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }} - run: | - ./nestiler --help + run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} - name: Upload artifact if: | (matrix.host == 'ubuntu-latest' && matrix.os == 'linux') |