From c411d7c4f50060c74e4dff0a1f4da22298feb8bf Mon Sep 17 00:00:00 2001 From: JustFixMe Date: Mon, 27 Nov 2023 20:59:20 +0400 Subject: [PATCH] added test workflow --- .gitea/workflows/test-dotnet.yaml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/test-dotnet.yaml diff --git a/.gitea/workflows/test-dotnet.yaml b/.gitea/workflows/test-dotnet.yaml new file mode 100644 index 0000000..dc9fe31 --- /dev/null +++ b/.gitea/workflows/test-dotnet.yaml @@ -0,0 +1,36 @@ +name: .NET Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: https://github.com/actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal --logger trx --results-directory "TestResults-8.x" + + - name: Upload dotnet test results + uses: actions/upload-artifact@v3 + with: + name: dotnet-results-8.x + path: TestResults-8.x + if: ${{ always() }} + retention-days: 30