Skip to content

Commit bebec23

Browse files
committed
ci fix
1 parent 98a3c4d commit bebec23

4 files changed

Lines changed: 318 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ jobs:
2929

3030
- run: npm ci
3131

32-
- name: Copy sample data files
33-
run: |
34-
mkdir -p public/data
35-
cp data/*.json public/data/
36-
3732
- run: npm run build
3833

3934
- uses: actions/configure-pages@v4

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ dist-ssr
2323
*.sln
2424
*.sw?
2525

26-
public/data

public/data/a1.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{
2+
"name": "Project Alpha",
3+
"version": "1.0.0",
4+
"description": "A sample project for testing",
5+
"active": true,
6+
"priority": 5,
7+
"config": {
8+
"debug": true,
9+
"timeout": 5000,
10+
"retries": 3,
11+
"logging": {
12+
"level": "info",
13+
"format": "json",
14+
"outputs": ["console", "file"],
15+
"rotation": {
16+
"enabled": true,
17+
"maxSize": "10MB",
18+
"maxFiles": 5
19+
}
20+
},
21+
"features": {
22+
"auth": true,
23+
"cache": false,
24+
"analytics": true,
25+
"rateLimit": {
26+
"enabled": true,
27+
"requests": 100,
28+
"window": "1m"
29+
}
30+
},
31+
"database": {
32+
"host": "localhost",
33+
"port": 5432,
34+
"name": "app_db",
35+
"pool": {
36+
"min": 2,
37+
"max": 10
38+
}
39+
}
40+
},
41+
"users": [
42+
{"id": 1, "name": "Alice", "role": "admin", "active": true, "email": "alice@example.com"},
43+
{"id": 2, "name": "Bob", "role": "user", "active": true, "email": "bob@example.com"},
44+
{"id": 3, "name": "Carol", "role": "editor", "active": true, "email": "carol@example.com"}
45+
],
46+
"teams": {
47+
"engineering": {
48+
"lead": "Alice",
49+
"members": ["Bob", "Carol", "Dave"],
50+
"projects": ["api", "frontend", "mobile"]
51+
},
52+
"design": {
53+
"lead": "Eve",
54+
"members": ["Frank", "Grace"],
55+
"projects": ["ui-kit", "branding"]
56+
}
57+
},
58+
"permissions": {
59+
"admin": ["read", "write", "delete", "manage"],
60+
"editor": ["read", "write"],
61+
"user": ["read"]
62+
},
63+
"metadata": {
64+
"created": "2024-01-15",
65+
"updated": "2024-01-20",
66+
"author": "system",
67+
"tags": ["production", "stable"],
68+
"environment": "production"
69+
},
70+
"history": [
71+
{"action": "create", "timestamp": "2024-01-15T10:00:00Z", "user": "admin"},
72+
{"action": "update", "timestamp": "2024-01-20T14:30:00Z", "user": "alice"}
73+
],
74+
"stats": {
75+
"requests": {
76+
"total": 100000,
77+
"success": 95000,
78+
"failed": 5000
79+
},
80+
"users": {
81+
"total": 500,
82+
"active": 450,
83+
"new": 25
84+
},
85+
"performance": {
86+
"avgLatency": 120,
87+
"p99Latency": 450,
88+
"uptime": 99.9
89+
}
90+
},
91+
"integrations": {
92+
"slack": {
93+
"enabled": true,
94+
"channel": "#alerts",
95+
"events": ["error", "warning"]
96+
},
97+
"github": {
98+
"enabled": true,
99+
"repo": "org/project",
100+
"branch": "main"
101+
}
102+
},
103+
"deprecated": {
104+
"oldApi": true,
105+
"legacyAuth": true
106+
},
107+
"limits": {
108+
"maxFileSize": "50MB",
109+
"maxRequests": 10000,
110+
"quotas": {
111+
"storage": "100GB",
112+
"bandwidth": "1TB"
113+
}
114+
},
115+
"notifications": {
116+
"email": true,
117+
"sms": false,
118+
"push": true,
119+
"channels": ["email", "push"]
120+
},
121+
"schedule": {
122+
"backup": "0 0 * * *",
123+
"cleanup": "0 3 * * 0",
124+
"reports": "0 9 * * 1"
125+
},
126+
"experiments": {
127+
"darkMode": {
128+
"enabled": false,
129+
"percentage": 0
130+
},
131+
"newCheckout": {
132+
"enabled": true,
133+
"percentage": 25
134+
}
135+
}
136+
}

public/data/a2.json

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
{
2+
"name": "Project Alpha",
3+
"version": "2.0.0",
4+
"description": "An updated sample project with new features",
5+
"active": true,
6+
"priority": 8,
7+
"status": "released",
8+
"config": {
9+
"debug": false,
10+
"timeout": 10000,
11+
"retries": 5,
12+
"logging": {
13+
"level": "warn",
14+
"format": "structured",
15+
"outputs": ["console", "file", "cloud"],
16+
"rotation": {
17+
"enabled": true,
18+
"maxSize": "50MB",
19+
"maxFiles": 10,
20+
"compress": true
21+
}
22+
},
23+
"features": {
24+
"auth": true,
25+
"cache": true,
26+
"analytics": true,
27+
"notifications": true,
28+
"rateLimit": {
29+
"enabled": true,
30+
"requests": 500,
31+
"window": "1m",
32+
"burstLimit": 50
33+
}
34+
},
35+
"database": {
36+
"host": "db.production.internal",
37+
"port": 5432,
38+
"name": "app_db_v2",
39+
"pool": {
40+
"min": 5,
41+
"max": 50,
42+
"idleTimeout": 30000
43+
},
44+
"replicas": ["replica-1", "replica-2"]
45+
},
46+
"redis": {
47+
"host": "redis.internal",
48+
"port": 6379,
49+
"cluster": true
50+
}
51+
},
52+
"users": [
53+
{"id": 1, "name": "Alice", "role": "superadmin", "active": true, "email": "alice@example.com", "verified": true},
54+
{"id": 2, "name": "Bob", "role": "user", "active": false, "email": "robert@example.com"},
55+
{"id": 4, "name": "Diana", "role": "admin", "active": true, "email": "diana@example.com"},
56+
{"id": 5, "name": "Eric", "role": "editor", "active": true, "email": "eric@example.com"}
57+
],
58+
"teams": {
59+
"engineering": {
60+
"lead": "Alice",
61+
"members": ["Bob", "Diana", "Eric", "Frank"],
62+
"projects": ["api", "frontend", "mobile", "infrastructure"]
63+
},
64+
"design": {
65+
"lead": "Grace",
66+
"members": ["Henry", "Ivy"],
67+
"projects": ["ui-kit", "branding", "design-system"]
68+
},
69+
"marketing": {
70+
"lead": "Jack",
71+
"members": ["Kate", "Leo"],
72+
"projects": ["campaigns", "analytics"]
73+
}
74+
},
75+
"permissions": {
76+
"superadmin": ["read", "write", "delete", "manage", "audit"],
77+
"admin": ["read", "write", "delete", "manage"],
78+
"editor": ["read", "write", "comment"],
79+
"user": ["read", "comment"]
80+
},
81+
"metadata": {
82+
"created": "2024-01-15",
83+
"updated": "2024-06-15",
84+
"author": "alice",
85+
"tags": ["production", "stable", "v2", "featured"],
86+
"environment": "production",
87+
"region": "us-east-1"
88+
},
89+
"history": [
90+
{"action": "create", "timestamp": "2024-01-15T10:00:00Z", "user": "admin"},
91+
{"action": "update", "timestamp": "2024-01-20T14:30:00Z", "user": "alice"},
92+
{"action": "migrate", "timestamp": "2024-03-01T09:00:00Z", "user": "system"},
93+
{"action": "upgrade", "timestamp": "2024-06-15T12:00:00Z", "user": "alice", "notes": "Major version upgrade"}
94+
],
95+
"stats": {
96+
"requests": {
97+
"total": 500000,
98+
"success": 485000,
99+
"failed": 15000,
100+
"cached": 250000
101+
},
102+
"users": {
103+
"total": 2500,
104+
"active": 2100,
105+
"new": 150,
106+
"premium": 500
107+
},
108+
"performance": {
109+
"avgLatency": 85,
110+
"p99Latency": 320,
111+
"uptime": 99.99,
112+
"errorRate": 0.03
113+
}
114+
},
115+
"integrations": {
116+
"slack": {
117+
"enabled": true,
118+
"channel": "#production-alerts",
119+
"events": ["error", "warning", "deployment"]
120+
},
121+
"github": {
122+
"enabled": true,
123+
"repo": "org/project-v2",
124+
"branch": "main",
125+
"actions": true
126+
},
127+
"datadog": {
128+
"enabled": true,
129+
"apiKey": "***",
130+
"metrics": ["latency", "errors", "throughput"]
131+
}
132+
},
133+
"limits": {
134+
"maxFileSize": "100MB",
135+
"maxRequests": 50000,
136+
"quotas": {
137+
"storage": "500GB",
138+
"bandwidth": "5TB",
139+
"apiCalls": "1M"
140+
},
141+
"rateLimit": {
142+
"tier1": 1000,
143+
"tier2": 5000,
144+
"tier3": 20000
145+
}
146+
},
147+
"notifications": {
148+
"email": true,
149+
"sms": true,
150+
"push": true,
151+
"webhook": true,
152+
"channels": ["email", "push", "sms", "webhook"]
153+
},
154+
"schedule": {
155+
"backup": "0 */6 * * *",
156+
"cleanup": "0 3 * * *",
157+
"reports": "0 9 * * 1",
158+
"healthCheck": "*/5 * * * *"
159+
},
160+
"experiments": {
161+
"darkMode": {
162+
"enabled": true,
163+
"percentage": 100
164+
},
165+
"newCheckout": {
166+
"enabled": true,
167+
"percentage": 100,
168+
"graduated": true
169+
},
170+
"aiAssistant": {
171+
"enabled": true,
172+
"percentage": 10,
173+
"models": ["gpt-4", "claude"]
174+
}
175+
},
176+
"compliance": {
177+
"gdpr": true,
178+
"soc2": true,
179+
"hipaa": false
180+
},
181+
"changelog": "v2.0.0: Major update with performance improvements, new integrations, and enhanced security"
182+
}

0 commit comments

Comments
 (0)