mirror of
https://github.com/outbackdingo/kamaji.git
synced 2026-01-27 10:19:29 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
|
|
jobs:
|
|
test:
|
|
name: integration
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: make test
|
|
golangci:
|
|
name: lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Run golangci-lint
|
|
run: make golint
|
|
# TODO(prometherion): enable back once golangci-lint is built from v1.24 rather than v1.23
|
|
# uses: golangci/golangci-lint-action@v6.5.2
|
|
# with:
|
|
# version: v1.62.2
|
|
# only-new-issues: false
|
|
# args: --config .golangci.yml
|
|
diff:
|
|
name: diff
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v6
|
|
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)"
|