Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Skip tests for docs folders #281

Merged
merged 2 commits into from
May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/helm-chart-ci-ignore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Helm Chart CI

on:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened]
paths-ignore:
- 'charts/**'
- '.github/workflows/helm-chart-ci.yaml'
- '.github/kind/conf/kind-config.yaml'
- '.github/tests/**/*.yaml'
- '.github/tests/**/*.sh'
- '.github/tests/**/*.json'
- 'examples/**/*.yaml'
- 'helm-docs.sh'

jobs:
lint-chart:
runs-on: ubuntu-22.04
steps:
- run: 'echo "Skipping linter"'

checks:
runs-on: ubuntu-22.04
steps:
- run: 'echo "Skipping checks"'

build-matrix:
name: Build matrix
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v3.5.2

- id: set-matrix
name: Collect all tests
run: |
tests="$(echo -e "default\n$(find .github/tests -maxdepth 1 -type d | grep -Ev 'tests$' | xargs -I % basename % | sort | uniq)")"
tests_json="$(echo "$tests" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')"
echo "tests=$tests_json" >> $GITHUB_OUTPUT

outputs:
tests: ${{ steps.set-matrix.outputs.tests }}

test:
runs-on: ubuntu-22.04
needs:
- build-matrix

strategy:
matrix:
k8s:
- v1.27.0
- v1.26.3
- v1.25.8
values:
- ${{ fromJson(needs.build-matrix.outputs.tests) }}

steps:
- run: 'echo "Skipping tests"'