From f6de24865ae9165911116e23d0abf6a19fe11c17 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 7 Jun 2026 11:33:44 +0100 Subject: [PATCH] cleanup --- .github/workflows/buildAndTest.yml | 56 ---------------------------- .github/workflows/docker-publish.yml | 3 +- 2 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/buildAndTest.yml diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml deleted file mode 100644 index 979ee03a..00000000 --- a/.github/workflows/buildAndTest.yml +++ /dev/null @@ -1,56 +0,0 @@ -# This workflow will build a .NET project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net -name: Dotnet build and test - -on: - workflow_dispatch: - inputs: - logLevel: - description: 'Log level' - required: true - default: 'warning' - type: choice - options: - - info - - warning - - debug - tags: - description: 'Test scenario tags' - required: false - type: boolean - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - log-the-inputs: - runs-on: ubuntu-latest - steps: - - run: | - echo "Log level: $LEVEL" - echo "Tags: $TAGS" - echo "Environment: $ENVIRONMENT" - env: - LEVEL: ${{ inputs.logLevel }} - TAGS: ${{ inputs.tags }} - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 9.0.x - - name: Add custom NuGet source - run: dotnet nuget add source https://isn.pschneider.fr/v3/index.json --name isn-pschneider - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 367b354f..74918d3c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -26,7 +26,8 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - + - name: Test + run: dotnet test --no-build --verbosity normal # 4. Build et Push de l'image de production finale - name: Build and push production image uses: docker/build-push-action@v6