Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions .github/workflows/dockerfile_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ jobs:
- name: Test image
if: ${{ !inputs.test-build-only && !contains(inputs.platforms, ',') }}
run: |
echo "Testing Docker image..."
docker run --rm test:latest --version || true
echo "✅ Image test completed"

- name: Run Trivy vulnerability scanner
if: inputs.enable-trivy && !contains(inputs.platforms, ',')
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/go_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ jobs:

- name: Build
run: |
echo "Building Go project..."
go build ${{ inputs.build-path }}
echo "✅ Build completed successfully"

test:
name: Test
Expand All @@ -100,7 +98,6 @@ jobs:

- name: Run tests
run: |
echo "Running tests..."
if [ "${{ inputs.enable-coverage }}" = "true" ]; then
go test ${{ inputs.test-flags }} -coverprofile=coverage.out -covermode=atomic ${{ inputs.test-path }}
else
Expand Down Expand Up @@ -186,5 +183,4 @@ jobs:

- name: Run govulncheck
run: |
echo "🔍 Scanning for vulnerabilities..."
govulncheck ./...
9 changes: 4 additions & 5 deletions .github/workflows/helm_chart_build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,13 @@ jobs:
echo "chart-type=$CHART_TYPE"
} >> "$GITHUB_OUTPUT"

- name: Prepare chart
- name: Display chart info
run: |
echo "Chart type: ${{ steps.extract.outputs.chart-type }}"
echo "Chart version: ${{ steps.extract.outputs.chart-version }}"
echo "Type: ${{ steps.extract.outputs.chart-type }}"
echo "Version: ${{ steps.extract.outputs.chart-version }}"
if [ "${{ steps.extract.outputs.chart-type }}" != "library" ]; then
echo "Chart appVersion: ${{ steps.extract.outputs.app-version }}"
echo "App Version: ${{ steps.extract.outputs.app-version }}"
fi
echo "Packaging chart with existing versions..."

- name: Setup GPG
if: inputs.enable-signing
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/helm_chart_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,22 @@ jobs:
echo "chart-type=$CHART_TYPE" >> "$GITHUB_OUTPUT"
echo "Chart type: $CHART_TYPE"

- name: Update dependencies
- name: Build dependencies
run: |
cd "${{ steps.paths.outputs.chart-dir }}"
if [ -f "Chart.yaml" ] && yq eval '.dependencies' Chart.yaml > /dev/null 2>&1; then
echo "Updating chart dependencies..."
helm dependency update
helm dependency build
else
echo "No dependencies found, skipping dependency update"
echo "No dependencies found"
fi

- name: Helm lint
run: |
echo "Linting Helm chart..."
helm lint ${{ steps.paths.outputs.chart-dir }}

- name: Helm template
if: steps.detect.outputs.chart-type != 'library'
run: |
echo "Templating Helm chart..."
helm template test ${{ steps.paths.outputs.chart-dir }} --debug

kubeconform:
Expand Down Expand Up @@ -127,20 +124,18 @@ jobs:
echo "chart-type=$CHART_TYPE" >> "$GITHUB_OUTPUT"
echo "Chart type: $CHART_TYPE"

- name: Update dependencies
- name: Build dependencies
run: |
cd "${{ steps.paths.outputs.chart-dir }}"
if [ -f "Chart.yaml" ] && yq eval '.dependencies' Chart.yaml > /dev/null 2>&1; then
echo "Updating chart dependencies..."
helm dependency update
helm dependency build
else
echo "No dependencies found, skipping dependency update"
echo "No dependencies found"
fi

- name: Validate with kubeconform
if: steps.detect.outputs.chart-type != 'library'
run: |
echo "Validating with kubeconform..."
K8S_VERSION="${{ inputs.kubernetes-version }}"
K8S_VERSION="${K8S_VERSION#v}"
helm template test ${{ steps.paths.outputs.chart-dir }} | kubeconform \
Expand Down Expand Up @@ -208,7 +203,6 @@ jobs:
- name: Install chart
if: steps.detect.outputs.chart-type != 'library'
run: |
echo "Installing Helm chart in Kind cluster..."
helm install test-release ${{ steps.paths.outputs.chart-dir }} \
--wait --timeout 5m --debug \
--dry-run
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/workflow_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
push:
branches:
- main
- develop
paths:
- ".github/workflows/**"
workflow_dispatch:
Expand Down