From 5ecd3dd585d041da3cde9c2b8baff4864f573eb0 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Fri, 24 May 2024 14:15:49 +1000 Subject: [PATCH 1/3] Run tests on GitHub Actions --- .github/workflows/dotnet.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 000000000..79fc04ef2 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,26 @@ +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + IGNORE_NORMALISATION_GIT_HEAD_MOVE: 1 + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet tool restore + - name: Build + run: dotnet cake --target AppVeyor --verbosity Diagnostic From edee965041da3759e7b9883f9190a2f038c9e7a0 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Fri, 24 May 2024 14:18:29 +1000 Subject: [PATCH 2/3] Avoid shallow copies on checkout --- .github/workflows/dotnet.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 79fc04ef2..8d2024739 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,6 +16,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # avoid shallow clone - name: Setup .NET uses: actions/setup-dotnet@v4 with: From baf81e8cccab85d01359552ccc41320bb39faeb4 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Fri, 24 May 2024 15:02:59 +1000 Subject: [PATCH 3/3] run on windows --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8d2024739..bb3a847f2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -13,7 +13,7 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v4 with: