Skip to content

Commit

Permalink
feat(cicd): allow skipping test
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed May 27, 2024
1 parent f8f4d71 commit 23024cf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ on:
branches:
- master

workflow_dispatch: {}

workflow_dispatch:
inputs:
skip-test:
description: 'Skip test'
required: false
type: string
default: "false"
jobs:
check:
name: Check & Publish
Expand Down Expand Up @@ -44,11 +49,13 @@ jobs:
uses: gradle/wrapper-validation-action@v3

- name: Build the docker-compose stack
if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
run: |
docker-compose -f docker-compose-ci.yml up -d
# Gradle check
- name: Build with Gradle
if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
run: ./gradlew check

# Publish
Expand Down

0 comments on commit 23024cf

Please sign in to comment.