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