Skip to content

Commit

Permalink
Update ceramic-one setup for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Jun 27, 2024
1 parent f2a91fc commit 50c3473
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
ceramic:
image: public.ecr.aws/r5b3e0r5/3box/ceramic-one:latest
env:
CERAMIC_ONE_BIND_ADDRESS: 0.0.0.0:5001
CERAMIC_ONE_NETWORK: in-memory
CERAMIC_ONE_STORE_DIR: /
options: --user root
ports:
- 5001:5001

Expand Down
8 changes: 7 additions & 1 deletion tests/c1-integration/test/model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
type ModelDefinition,
ModelEvent,
} from '@ceramic-sdk/model-protocol'
import { CID } from 'multiformats/cid'

const client = new CeramicClient({ url: 'http://localhost:5001' })

Expand All @@ -28,6 +27,13 @@ const testModel: ModelDefinition = {
},
}

test.only('connect to ceramic-one', async () => {
const res = await fetch('http://localhost:5001/ceramic/version')
expect(res.ok)
const data = await res.json()
console.log('version', data.version)
})

test('create model', async () => {
await client.registerInterestModel(MODEL_STREAM_ID)

Expand Down

0 comments on commit 50c3473

Please sign in to comment.