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 0ec037a commit cc91544
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ on:
branches:
- master

workflow_dispatch: {}
workflow_dispatch:
inputs:
skip-test:
description: 'Skip test'
required: false
type: string
default: "false"

jobs:
check:
Expand Down Expand Up @@ -45,6 +51,7 @@ jobs:
# Services
- name: Build the docker-compose stack
if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
run: |
mkdir certs
openssl req -new -x509 -days 365 -nodes -out certs/ca.crt -keyout certs/ca.key -subj "/CN=root-ca"
Expand Down Expand Up @@ -73,6 +80,7 @@ jobs:
# Gradle check
- name: Build with Gradle
if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
env:
ROCKSET_APIKEY: ${{ secrets.ROCKSET_APIKEY }}
run: ./gradlew check
Expand Down

0 comments on commit cc91544

Please sign in to comment.