From c223aed71fa3a0eac241a17af41e0e4245889ea8 Mon Sep 17 00:00:00 2001 From: mcmuzzle Date: Fri, 31 May 2024 22:42:25 +0200 Subject: [PATCH] Mise en place d'un giteaAction pour lancer les tests unitaire en automatique a chaque push --- .gitea/workflows/tests.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/tests.yaml diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml new file mode 100644 index 0000000..df42205 --- /dev/null +++ b/.gitea/workflows/tests.yaml @@ -0,0 +1,24 @@ +name: dotnet package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: [ '8.0.x' ] + + steps: + - uses: actions/checkout@v4 + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Install dependencies + run: dotnet restore ./src/LittleTown.sln + - name: Build + run: dotnet build ./src/LittleTown.sln + - name: Test with the dotnet CLI + run: dotnet test ./src/LittleTown.sln \ No newline at end of file -- 2.49.1