From aeb04d360d6ea3f8328d2a7fef6055a117b23919 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Wed, 3 Aug 2022 08:51:21 +0200 Subject: [PATCH] feat(cicd): allow to skip test on workflow dispatch --- .github/workflows/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e05e289e01..d940dd9d01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,12 @@ on: repository_dispatch: types: [rebuild] workflow_dispatch: - + inputs: + skip-test: + description: 'Skip test' + required: false + type: string + default: "false" jobs: check: @@ -38,6 +43,7 @@ jobs: # Services - name: Build the docker-compose stack run: docker-compose -f docker-compose-ci.yml up -d + if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }} # Caches - name: Gradle cache @@ -78,6 +84,7 @@ jobs: # Gradle check - name: Build with Gradle + if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }} env: GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} run: | @@ -89,6 +96,7 @@ jobs: # Codecov - uses: codecov/codecov-action@v3 + if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }} with: token: ${{ secrets.CODECOV_TOKEN }}