Skip to content

Commit 90a9fc6

Browse files
committed
bak
1 parent 0c49f48 commit 90a9fc6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/spa-server-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- name: Run spa-server docker
6161
run: |
62-
docker run -d -p 9000:9000 -p 8080:8080 -v ${{ github.workspace }}/jsclient/test/config.toml:/config/config.toml ghcr.io/fornetcode/spa-server:v2.4.0
62+
docker run -d -name=test -p 9000:9000 -p 8080:8080 -v ${{ github.workspace }}/jsclient/test/config.toml:/config/config.toml ghcr.io/fornetcode/spa-server:v2.4.0
63+
docker ps
64+
docker logs --tail 50 test
6365
- uses: actions/setup-node@v4
6466
with:
6567
node-version: '20.x'

jsclient/test/command.spec.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ test('info', async () => {
1313
})
1414

1515
test('upload', async () => {
16-
const exampleProjectDir = path.resolve(__dirname, '../../example/js-app-example')
17-
18-
const result = await runCommand(['upload', path.join(exampleProjectDir, 'build'), LOCAL_HOST])
19-
console.log(result)
16+
const exampleProjectDir = path.join(path.resolve(__dirname, '../example/js-app-example'), 'build')
17+
console.log(`upload path ${exampleProjectDir}`)
18+
// const result = await runCommand(['upload', exampleProjectDir, LOCAL_HOST])
19+
// console.log(result)
2020

2121
})
22+
/*
2223
test('release', async () => {
2324
const result = await runCommand(['release', LOCAL_HOST])
2425
console.log(result)
25-
expect(await runCommand(['info'])).toBe(`[{"domain":"${LOCAL_HOST}","current_version":1,"versions":[1]}]`)
26+
// expect(await runCommand(['info'])).toBe(`[{"domain":"${LOCAL_HOST}","current_version":1,"versions":[1]}]`)
2627
})
27-
28-
29-
30-
28+
*/

0 commit comments

Comments
 (0)