From 4dd03371c071cc5ce19800ca5c174ecb941b5e94 Mon Sep 17 00:00:00 2001 From: Mojtaba Arezoumand Date: Wed, 17 Apr 2024 03:20:31 +0330 Subject: [PATCH] ci: add test workflow (#2) --- .github/workflows/test.yaml | 31 +++++++++++++++++++++++++++++++ .kubeconform | 7 +++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/test.yaml create mode 100644 .kubeconform diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..7b56694 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,31 @@ +name: Test + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Helm + uses: azure/setup-helm@v4.2.0 + id: install + with: + version: v3.14.4 + + - name: Setup kubeconform-helm + run: helm plugin install https://github.com/jtyr/kubeconform-helm + + - name: Test + run: helm kubeconform . + \ No newline at end of file diff --git a/.kubeconform b/.kubeconform new file mode 100644 index 0000000..7414e38 --- /dev/null +++ b/.kubeconform @@ -0,0 +1,7 @@ +schema-location: + - "default" + - "https://github.com/datreeio/CRDs-catalog/raw/main/monitoring.coreos.com/servicemonitor_v1.json" +output: "pretty" +verbose: true +strict: true +summary: true \ No newline at end of file