Skip to content

Commit

Permalink
Automate supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 15, 2024
1 parent dae6a57 commit 44c1420
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/helm-charts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: "helm-charts/test"
on: pull_request

jobs:
kubernetes-versions:
runs-on: ubuntu-latest
steps:
- id: release
uses: JLLeitschuh/endoflife-matrix-action@v1
with:
product: kubernetes
outputs:
matrix: ${{ steps.release.outputs.versions }}
lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -15,17 +24,15 @@ jobs:
- name: Lint charts
id: lint
run: ct lint --all --target-branch ${{ github.event.repository.default_branch }}

test:
runs-on: ubuntu-latest
needs: lint
needs:
- lint
- kubernetes-versions
strategy:
fail-fast: false
matrix:
k8s:
- "1.28"
- "1.29"
- "1.30"
k8s: ${{ fromJson(needs.kubernetes-versions.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 44c1420

Please sign in to comment.