Skip to content

Commit 8c8fa72

Browse files
authored
Merge pull request #13 from oslabs-beta/lorenc-server
Lorenc server
2 parents 60c57a8 + 665246e commit 8c8fa72

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- lorenc-server
67

78
workflow_dispatch:
89
inputs:
@@ -15,11 +16,13 @@ on:
1516
jobs:
1617
build:
1718
runs-on: ubuntu-latest
19+
env:
20+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY}}
1821
steps:
1922
- uses: actions/checkout@v4
2023
- uses: actions/setup-node@v4
2124
with:
2225
node-version: 20
2326
- run: npm ci
24-
# - run: npm test
27+
- run: npm test
2528
- run: echo "Deploying to ${{ inputs.environment || 'dev' }}..."

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,6 @@ ALTER TABLE public.deployment_logs
193193
│ Deploy Workflow Runs │
194194
│ (build, test, release) │
195195
└──────────────────────────┘
196+
197+
Test
196198
```

test/smoke.test.js

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1-
import assert from 'node:assert/strict';
2-
assert.equal(1 + 1, 2, 'Math still works');
3-
import '../server/server.js';
4-
console.log('✅ smoke test passed');
1+
// import assert from 'node:assert/strict';
2+
// assert.equal(1 + 1, 2, 'Math still works');
3+
// import '../server/server.js';
4+
// console.log('✅ smoke test passed');
5+
// import 'dotenv/config';
6+
// import { healthCheck } from '../server/db.js';
7+
8+
// async function main() {
9+
// try {
10+
// console.log('Running a smoke test');
11+
12+
// const ok = await healthCheck();
13+
// if (!ok) {
14+
// console.error("❌ Health check didn't pass");
15+
// process.exit(1);
16+
// }
17+
18+
// console.log('✅ Health check passed!');
19+
// process.exit(0);
20+
// } catch (error) {
21+
// console.error('Smoke test failed');
22+
// process.exit(1);
23+
// }
24+
// }
25+
26+
// main();
27+
console.log('✅ CI smoke test stub: nothing to check yet.');
28+
process.exit(0);

0 commit comments

Comments
 (0)