Skip to content

Commit

Permalink
only run chart linting for specific files instead of trying to catch …
Browse files Browse the repository at this point in the history
…every exception (nextcloud#575)

* only run chart linting for specific files instead of trying to catch every exception

Signed-off-by: jessebot <[email protected]>

* attempt to adapt changes from https://github.com/nextcloud/.github/blob/master/workflow-templates/node.yml

Signed-off-by: jessebot <[email protected]>

* add needs: changes to lint job

Signed-off-by: jessebot <[email protected]>

* remove summary job afterall

Signed-off-by: jessebot <[email protected]>

---------

Signed-off-by: jessebot <[email protected]>
Signed-off-by: switzerchees <[email protected]>
  • Loading branch information
jessebot authored and SwitzerChees committed Jun 27, 2024
1 parent 29b9f66 commit 5e65a3b
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,29 @@ name: Lint and Test Charts

on:
pull_request:
paths-ignore:
- '.github/**'
- 'charts/**/README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'

paths:
jobs:
changes:
runs-on: ubuntu-latest-low

outputs:
src: ${{ steps.changes.outputs.src}}

steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
continue-on-error: true
with:
filters: |
src:
- 'charts/nextcloud/Chart.yaml'
- 'charts/nextcloud/values.yaml'
- 'charts/nextcloud/templates/**'
lint-test:
runs-on: ubuntu-22.04
needs: changes
if: needs.changes.outputs.src != 'false'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 5e65a3b

Please sign in to comment.