mirror of
https://github.com/clastix/kamaji.git
synced 2026-02-14 18:10:03 +00:00
* chore(makefile): installing cert-manager via helm Signed-off-by: Dario Tranchitella <dario@tranchitella.eu> * chore: removing need of kustomize in favor of yq By removing kustomize generation files we can simply release, despite the bundles must be removed since based on kustomize despite never being used. Signed-off-by: Dario Tranchitella <dario@tranchitella.eu> * chore(ci): aligning to latest manifest generation strategy Signed-off-by: Dario Tranchitella <dario@tranchitella.eu> --------- Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
|
|
jobs:
|
|
golangci:
|
|
name: lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@v6.1.0
|
|
with:
|
|
version: v1.54.2
|
|
only-new-issues: false
|
|
args: --timeout 5m --config .golangci.yml
|
|
diff:
|
|
name: diff
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make manifests
|
|
- name: Checking if generated manifests are not aligned
|
|
run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked generated files have not been committed" && git --no-pager diff && exit 1; fi
|
|
- name: Checking if missing untracked files for generated manifests
|
|
run: test -z "$(git ls-files --others --exclude-standard 2> /dev/null)"
|
|
- name: Checking if source code is not formatted
|
|
run: test -z "$(git diff 2> /dev/null)"
|
|
- run: make apidoc
|
|
- name: Checking if generated API documentation files are not aligned
|
|
run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked generated files have not been committed" && git --no-pager diff && exit 1; fi
|
|
- name: Checking if generated API documentation generated untracked files
|
|
run: test -z "$(git ls-files --others --exclude-standard 2> /dev/null)"
|