fix(backup): use compressed pubkey for the local backup name #1475
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 and vendor directories..." | |
files=$(find . -type f -name '*.go' ! -path './messaging/*' ! -path './vendor/*') | |
echo "Checking for invalid imports of github.com/status-im/status-go/messaging/*..." | |
for file in $files; do | |
if grep -qE '"github.com/status-im/status-go/messaging/(?!types|events).+"' "$file"; then | |
echo "Error: File $file imports github.com/status-im/status-go/messaging/* (except types and events) which is not allowed." | |
exit 1 | |
fi | |
done | |
echo "No invalid github.com/status-im/status-go/messaging/* imports found." |