mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-20 21:23:10 +03:00
Fixes the failing dep check in ci
Co-authored-by: Alicia Sykes <1862727+lissy93@users.noreply.github.com>
This commit is contained in:
1 parent
4938828c81
commit
705db13ced
3 files changed
+6
-8
No files matched your search
@@ -83,15 +83,12 @@ jobs:
|
||||
deps:
|
||||
name: 🔒 Dependencies
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'pull_request'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/dependency-review-action@v5
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm audit --audit-level=high
|
||||
- run: npm ls --all
|
||||
fail-on-severity: high
|
||||
|
||||
summarize:
|
||||
name: 📊 Summary
|
||||
@@ -117,7 +114,7 @@ jobs:
|
||||
DEPS: ${{ needs.deps.result }}
|
||||
run: |
|
||||
em() { case "$1" in success) echo "✅";; failure) echo "❌";; cancelled|skipped) echo "⏭️";; *) echo "❔";; esac; }
|
||||
line() { r="$1"; n="$2"; cmd="$3"; s="Passing"; [ "$r" != "success" ] && s="**Failing** - run \`$cmd\`"; echo "- $(em "$r") $n: $s"; }
|
||||
line() { r="$1"; n="$2"; cmd="$3"; s="Passing"; [ "$r" = "failure" ] && s="**Failing** - run \`$cmd\`"; [ "$r" = "skipped" ] && s="Skipped"; echo "- $(em "$r") $n: $s"; }
|
||||
|
||||
{
|
||||
echo "## Check Summary"
|
||||
|
||||
@@ -37,7 +37,7 @@ export default defineConfig({
|
||||
webServer: {
|
||||
command: 'npm run build && npm run preview',
|
||||
port: 4173,
|
||||
timeout: 120000,
|
||||
timeout: 300000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
});
|
||||
@@ -6,6 +6,7 @@ export default defineConfig({
|
||||
environment: 'node',
|
||||
globals: true,
|
||||
testTimeout: 30000, // API tests might take longer
|
||||
retry: process.env.CI ? 2 : 0, // Some endpoints depend on flaky third-party services
|
||||
hookTimeout: 10000,
|
||||
teardownTimeout: 10000,
|
||||
reporters: ['verbose'],
|
||||
|
||||
Reference in new issue
Block a user