mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-22 05:57:02 +00:00
* feat(config): add combined users property as successor for usergroups and usernames configuration Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(crds): add proper deprecation notices on properties and via admission warnings Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: add local monitoring environment Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Linting
|
|
permissions: {}
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
manifests:
|
|
name: diff
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: Generate manifests
|
|
run: |
|
|
make generate
|
|
make manifests
|
|
if [[ $(git diff --stat) != '' ]]; then
|
|
echo -e '\033[0;31mManifests outdated! (Run make manifests locally and commit)\033[0m ❌'
|
|
git diff --color
|
|
exit 1
|
|
else
|
|
echo -e '\033[0;32mDocumentation up to date\033[0m ✔'
|
|
fi
|
|
yamllint:
|
|
name: yamllint
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
- name: Install yamllint
|
|
run: pip install yamllint
|
|
- name: Lint YAML files
|
|
run: yamllint -c=.github/configs/lintconf.yaml .
|
|
golangci:
|
|
name: lint
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: Run golangci-lint
|
|
run: make golint
|