mirror of
https://github.com/SigNoz/signoz.git
synced 2026-03-09 15:02:21 +00:00
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: commitci
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
types:
|
|
- labeled
|
|
merge_group:
|
|
types:
|
|
- checks_requested
|
|
|
|
jobs:
|
|
refcheck:
|
|
if: |
|
|
github.event_name == 'merge_group' ||
|
|
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
|
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: check
|
|
run: |
|
|
if grep -R --include="*.go" '.*/ee/.*' pkg/; then
|
|
echo "Error: Found references to 'ee' packages in 'pkg' directory"
|
|
exit 1
|
|
else
|
|
echo "No references to 'ee' packages found in 'pkg' directory"
|
|
fi
|
|
|
|
if grep -R --include="*.go" '.*/ee/.*' cmd/community/; then
|
|
echo "Error: Found references to 'ee' packages in 'cmd/community' directory"
|
|
exit 1
|
|
else
|
|
echo "No references to 'ee' packages found in 'cmd/community' directory"
|
|
fi
|