Skip to content

Commit

Permalink
feat(ci): enable manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Aug 15, 2023
1 parent ea2df7c commit d800cc1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/chart-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ name: Lint and Test Charts

# Run chart linting and tests on each pull request
on:
pull_request:
paths:
- 'charts/**'
workflow_dispatch:
inputs:
force:
default: false
type: boolean
description: Force to run the pipeline, even without real changes
required: false
pull_request:
paths:
- 'charts/**'

jobs:
chart-lint:
Expand Down Expand Up @@ -78,10 +85,10 @@ jobs:
# Preparing a kind cluster to install and test charts on
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
if: steps.list-changed.outputs.changed == 'true' || ${{ inputs.force }}

# install the chart to the kind cluster and run helm test
# define charts to test with the --charts parameter
- name: Run chart-testing (install)
run: ct install --charts charts/managed-identity-wallet --config charts/chart-testing-config.yaml
if: steps.list-changed.outputs.changed == 'true'
if: steps.list-changed.outputs.changed == 'true' || ${{ inputs.force }}

0 comments on commit d800cc1

Please sign in to comment.