Skip to content

Merge pull request #2 from heznpc/dependabot/github_actions/actions/c… #20

Merge pull request #2 from heznpc/dependabot/github_actions/actions/c…

Merge pull request #2 from heznpc/dependabot/github_actions/actions/c… #20

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Scan for secrets
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Check for large files
run: |
LARGE=$(find . -not -path './.git/*' -not -path './node_modules/*' -type f -size +5M)
if [ -n "$LARGE" ]; then
echo "::error::Large files detected (>5 MB):"
echo "$LARGE"
exit 1
fi
- name: Install dependencies
run: npm ci
- name: Check licenses
run: npx license-checker --failOn "GPL-2.0;GPL-3.0;AGPL-3.0"
- name: Security audit
run: npm audit --audit-level=high
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build verification
run: npx expo export --platform web 2>/dev/null || echo "Web export not configured — skipping"