Skip to content

Commit

Permalink
chore(ci): Add kubeconform test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmercierfr committed Sep 22, 2023
1 parent 66276fa commit 95d4d45
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ permissions:
contents: read

jobs:
golang-test:
name: gotest
go:
name: go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -19,5 +19,31 @@ jobs:
- name: Install dependencies
run: |
go get .
- name: Run tests
run: make test
- name: Build
run: make build
- name: Run Go tests
run: make test
helm:
name: helm
runs-on: ubuntu-latest
env:
HELM_UNITTEST_VERSION: v0.3.5
steps:
- uses: actions/checkout@v3
- name: Install helm-unittest
run: helm plugin install --version $HELM_UNITTEST_VERSION https://github.com/helm-unittest/helm-unittest.git
- name: Run Helm test
run: make helm-test
kubeconform:
name: kubeconform
runs-on: ubuntu-latest
env:
KUBECONFORM_VERSION: 0.6.2
steps:
- uses: actions/checkout@v3
- name: Install kubeconform
run: |
curl -sSLo /tmp/kubeconform.tar.gz "https://github.com/yannh/kubeconform/releases/download/v${KUBECONFORM_VERSION}/kubeconform-linux-amd64.tar.gz" \
&& tar -C /usr/local/bin/ -xzvf /tmp/kubeconform.tar.gz
- name: Run Kubeconform test
run: make kubeconform
1 change: 0 additions & 1 deletion configs/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "prometheus-rds-exporter.selectorLabels" . | nindent 8 }}
{{- include "prometheus-rds-exporter.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down

0 comments on commit 95d4d45

Please sign in to comment.