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 dd5a12b commit 43df488
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .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 @@ -43,13 +49,16 @@ jobs:
uses: gradle/wrapper-validation-action@v3

# Google Cloud
- id: auth
- name: Auth to Google Cloud
id: auth
if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT }}'

# Gradle check
- name: Build with Gradle
if: ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
env:
DBT_APPLICATION: ${{ secrets.DBT_APPLICATION }}
run: |
Expand Down

0 comments on commit 43df488

Please sign in to comment.