Skip to content

namespace

namespace #70

Workflow file for this run

name: "[test helmfiles releases]"
on:
push:
branches:
- main
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.ref_name }}-test-workloads"
cancel-in-progress: true
jobs:
ci-test-helmfiles:
strategy:
fail-fast: false
matrix:
# kubernetes releases
k8s: [v1.27.11, v1.28.7, v1.29.2]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Prerequisite installations"
run: |
echo "install tooling"
( curl -Ls https://raw.githubusercontent.com/numerique-gouv/dk8s/main/scripts/install-prereq.sh | bash ) || exit $?
- name: lint
run: |
echo "lint files"
time make lint
- name: "Create local kubernetes ${{ matrix.k8s }} cluster"
run: |
make ci-bootstrap-local-cluster K8S_VERSION=${{ matrix.k8s }}
kubectl get nodes -A
- name: Test on local environment
run: |
echo "Install local root CA"
time make local-root-ca
echo "Sync releases"
time make apply
helm list -A
echo "Test local url"
time make ci-local-tests
echo "Destroy resources"
time make destroy
- name: Teardown
if: always()
run: |
echo "Destroy cluster ${{ matrix.k8s }}"
make ci-delete-local-cluster K8S_VERSION=${{ matrix.k8s }}