mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-20 21:23:10 +03:00
Merge branch 'main' into fix/light-theme-contrast
This commit is contained in:
7 files changed
+6
-14
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,
|
||||
},
|
||||
});
|
||||
@@ -12,7 +12,6 @@ interface CTCertificate {
|
||||
issuer_name: string;
|
||||
common_name: string;
|
||||
name_value: string;
|
||||
entry_timestamp: string;
|
||||
not_before: string;
|
||||
not_after: string;
|
||||
serial_number: string;
|
||||
@@ -24,7 +23,6 @@ interface ProcessedCertificate {
|
||||
sans: string[];
|
||||
issuer: string;
|
||||
issuerId: number;
|
||||
entryTimestamp: string;
|
||||
notBefore: string;
|
||||
notAfter: string;
|
||||
serialNumber: string;
|
||||
@@ -125,7 +123,6 @@ async function searchCTLogs(domain: string): Promise<CTLogResponse> {
|
||||
sans,
|
||||
issuer: cert.issuer_name,
|
||||
issuerId: cert.issuer_ca_id,
|
||||
entryTimestamp: cert.entry_timestamp,
|
||||
notBefore: cert.not_before,
|
||||
notAfter: cert.not_after,
|
||||
serialNumber: cert.serial_number,
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
sans: string[];
|
||||
issuer: string;
|
||||
issuerId: number;
|
||||
entryTimestamp: string;
|
||||
notBefore: string;
|
||||
notAfter: string;
|
||||
serialNumber: string;
|
||||
|
||||
@@ -49,7 +49,6 @@ describe('CT Log Search API', () => {
|
||||
expect(cert).toHaveProperty('sans');
|
||||
expect(cert).toHaveProperty('issuer');
|
||||
expect(cert).toHaveProperty('issuerId');
|
||||
expect(cert).toHaveProperty('entryTimestamp');
|
||||
expect(cert).toHaveProperty('notBefore');
|
||||
expect(cert).toHaveProperty('notAfter');
|
||||
expect(cert).toHaveProperty('serialNumber');
|
||||
|
||||
@@ -40,7 +40,6 @@ describe('CT Log Search API', () => {
|
||||
issuer_name: "Let's Encrypt",
|
||||
common_name: 'example.com',
|
||||
name_value: 'example.com\nwww.example.com',
|
||||
entry_timestamp: '2024-01-01T00:00:00Z',
|
||||
not_before: '2024-01-01T00:00:00Z',
|
||||
not_after: '2024-04-01T00:00:00Z',
|
||||
serial_number: 'abc123',
|
||||
|
||||
@@ -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