This commit is contained in:
Danilo Reyes
2025-11-02 11:12:10 -06:00
parent 5dc1b0bca5
commit 681fa0903b

View File

@@ -59,21 +59,25 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
- name: Install dependencies and run linting
run: |
# Copy frontend to /tmp to avoid noexec issues with DynamicUser
cp -r frontend /tmp/frontend-build
# Install dependencies in executable location
nix develop --quiet --command bash -c "
cd /tmp/frontend-build
npm ci --prefer-offline --no-audit
"
# Copy node_modules back to workspace
cp -r /tmp/frontend-build/node_modules frontend/
rm -rf /tmp/frontend-build
- name: Run frontend linting
run: nix run .#lint-frontend
# Run linting from the executable location
echo '🔍 Linting frontend TypeScript/Svelte code...'
npm run lint
npx prettier --check src/
npm run check
"
# Cleanup
rm -rf /tmp/frontend-build
# Nix flake check (needs Nix)
nix-check: