Skip to content

Bump the k8s group with 3 updates #613

Bump the k8s group with 3 updates

Bump the k8s group with 3 updates #613

Workflow file for this run

name: Github Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
skip-cache: true
build:
name: go Test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Test
run: make test
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
e2e:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🕹️ Install kind with registry
uses: bakito/kind-with-registry-action@main
- name: 🖼️ Build image
run: ./testdata/e2e/buildImage.sh
- name: 🔐 Install cert-manager
run: ./testdata/e2e/installCertManager.sh
- name: 🔐 Install service certificate
run: ./testdata/e2e/installCertificate.sh
- name: 💉 Install Java Truststore Injection Webhook helm chart
run: |
./testdata/e2e/installChart.sh
kubectl create ns e2e-test
- name: 🖥️ Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: 🛃 Test generated trust stores
id: test_generated_stores
run: ./testdata/e2e/testConfigMaps.sh
continue-on-error: true
- name: 📜 Print pod logs
run: ./testdata/e2e/show-pod-logs.sh
- name: ❌ Fail if 'Test generated trust stores' failed
if: steps.test_generated_stores.outcome=='failure'
run: |
echo "Step 'Test generated trust stores' failed: Check 'Test generated trust storesr' and 'Print pod logs' as well as the job summary for errors"
exit 1
helm:
name: Helm Checks
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Set up Tools
run: make tb.semver tb.helm-docs
- name: Lint
run: |
cp chart/README.md chart/README.md.old
make helm-lint
- name: Check chart/README.md is correctly generated with 'make docs'
run: |
# ignore version as it is updated during build
sed -i '/!\[Version\:/d' chart/README.md
sed -i '/!\[Version\:/d' chart/README.md.old
diff chart/README.md.old chart/README.md
- name: Template
run: make helm-template