chore: remove unused waku/ext peer & ENR API endpoints #4227
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Import Check" | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| jobs: | |
| check_messaging_imports: | |
| name: Ensure no messaging/* imports outside messaging directory | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run messaging import check | |
| run: | | |
| echo "Finding all Go files outside the messaging directory..." | |
| files=$(find . -type f -name '*.go' ! -path './pkg/messaging/*') | |
| echo "Checking for invalid imports of github.com/status-im/status-go/pkg/messaging/*..." | |
| for file in $files; do | |
| if grep -qE '"github.com/status-im/status-go/pkg/messaging/(?!types|events).+"' "$file"; then | |
| echo "Error: File $file imports github.com/status-im/status-go/pkg/messaging/* (except types and events) which is not allowed." | |
| exit 1 | |
| fi | |
| done | |
| echo "No invalid github.com/status-im/status-go/pkg/messaging/* imports found." |