Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-13 19:08:16 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-13 19:08:16 +0300
commit5791707cafc87637264c4ee0c4f4a5f6b4a8e35a (patch)
tree0d3584c254d83866a412f7c751d07716f98376af /.github
parentf55c6cfaebf3639558b0dd8c5c5524d42711de69 (diff)
Workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..d0694a2
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,40 @@
+name: Test
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+ workflow_dispatch:
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ host: [windows-latest, ubuntu-latest, macos-latest]
+ sc: [no-self-contained, self-contained]
+ exclude:
+ - os: linux
+ arch: x86
+ - os: osx
+ arch: x86
+ - os: osx
+ arch: arm
+ runs-on: ${{ matrix.host }}
+ env:
+ TESTS_PATH: ./Tests
+ CONFIGURATION: Release
+ TESTS_CONFIGURATION: Debug
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Checkout submodules
+ run: git submodule update --init --recursive
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: 6.0.x
+ - name: Tests
+ env:
+ SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true -p:PublishTrimmed=True' || '--no-self-contained' }}
+ run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }} -p:PublishSingleFile=true {{ env.SC_OPS }}