From b0da25fc8ce58731c960afb5fbd28d0aeda6bd31 Mon Sep 17 00:00:00 2001 From: Anton Herzog Date: Sun, 17 Sep 2023 17:15:55 +0200 Subject: [PATCH 1/4] Add github action workflow for tests --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..2918b2d3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Tests + +on: [push] + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET Core SDKs + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.X + 7.0.X + 8.0.X + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet msbuild -target:solution .\build.proj + - name: Unit Tests + run: dotnet msbuild -target:unittests .\build.proj + - name: Story Tests + run: dotnet msbuild -target:storytests .\build.proj \ No newline at end of file From 7ae274e95c93be4f54548e9cc1f0d27aa34c2e0b Mon Sep 17 00:00:00 2001 From: Anton Herzog Date: Sun, 17 Sep 2023 17:20:16 +0200 Subject: [PATCH 2/4] Fix restore step --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2918b2d3..5145235c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: 7.0.X 8.0.X - name: Install dependencies - run: dotnet restore + run: dotnet msbuild -target:restore .\build.proj - name: Build run: dotnet msbuild -target:solution .\build.proj - name: Unit Tests From 4b39448f090ab1f7cb6586f1a38ddd061bdc18fe Mon Sep 17 00:00:00 2001 From: Anton Herzog Date: Sun, 17 Sep 2023 17:29:30 +0200 Subject: [PATCH 3/4] Add dotnet 3.1.X for now --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5145235c..e72de721 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: | + 3.1.X 6.0.X 7.0.X 8.0.X From 0fe8a6c29ef43d35f05b21bcba56d059cdef4a4f Mon Sep 17 00:00:00 2001 From: Anton Herzog Date: Sun, 17 Sep 2023 17:45:04 +0200 Subject: [PATCH 4/4] Remove dotnet 8 as it is not in needed yet --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e72de721..3ceb8b3a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,6 @@ jobs: 3.1.X 6.0.X 7.0.X - 8.0.X - name: Install dependencies run: dotnet msbuild -target:restore .\build.proj - name: Build