From 402fa772227422b7e05ccf4258d228cc4f0e83bb Mon Sep 17 00:00:00 2001 From: pierre Date: Mon, 4 Nov 2024 11:48:21 +0000 Subject: [PATCH] :sparkles: add git CI --- .gitea/workflows/dotnetbuild_runner.yaml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/dotnetbuild_runner.yaml diff --git a/.gitea/workflows/dotnetbuild_runner.yaml b/.gitea/workflows/dotnetbuild_runner.yaml new file mode 100644 index 0000000..656fe89 --- /dev/null +++ b/.gitea/workflows/dotnetbuild_runner.yaml @@ -0,0 +1,29 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + strategy: + matrix: + dotnet-version: [ '3.1.x', '6.0.x' ] + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + - name: Install dependencies + run: dotnet restore + - name: Test with dotnet + run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}" + - name: Upload dotnet test results + uses: actions/upload-artifact@v4 + with: + name: dotnet-results-${{ matrix.dotnet-version }} + path: TestResults-${{ matrix.dotnet-version }} + # Use always() to always run this step to publish test results when there are test failures + if: ${{ always() }} +