Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-action: support check/lint/pre-commit #38175

Merged
merged 13 commits into from
Jun 4, 2024
Next Next commit
github-action: support check/lint
v1v committed Mar 4, 2024
commit 8880d60280e2da71424b278737ed1a086fb21ead
10 changes: 10 additions & 0 deletions .github/workflows/check-default.yml
Original file line number Diff line number Diff line change
@@ -24,3 +24,13 @@ jobs:
run: |
go install github.com/magefile/mage
make check-default

unified-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run check/update
run: |
GO_VERSION=$(cat .go-version) ./dev-tools/run_with_go_ver make test-mage
env:
GOFLAGS: '-mod=readonly'
28 changes: 28 additions & 0 deletions .github/workflows/check-deploy-kubernetes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: check-deploy-kubernetes

on:
pull_request:
paths:
- "^deploy/kubernetes/.*"
- "^libbeat/docs/version.asciidoc"
push:
branches:
- main
- 7.1*
- 8.*

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: .go-version
- name: Run deploy/kubernetes all
run: make -C deploy/kubernetes all
- name: Run check-no-changes
run: make check-no-changes