From f9c45791c914cd19585f159ca0be97b36f6bed09 Mon Sep 17 00:00:00 2001 From: Hy3n4 Date: Sat, 21 Feb 2026 00:10:16 +0100 Subject: [PATCH] ci: add test and helm lint workflow for PRs and main Signed-off-by: Hy3n4 --- .github/workflows/ci.yaml | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..90acc35 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,49 @@ +name: CI + +on: + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Run tests + run: make test + + helm-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Helm + uses: azure/setup-helm@v4 + + - name: Add Prometheus Helm repository + run: helm repo add prometheus-community https://prometheus-community.github.io/helm-charts + + - name: Build Helm dependencies + run: helm dependency build helm/osko + + - name: Lint Helm chart + run: helm lint helm/osko + + - name: Template Helm chart + run: helm template osko helm/osko