Skip to content

Commit 3200971

Browse files
[TRY] see if tests would run on demo image
Signed-off-by: Marc Dumais <[email protected]>
1 parent c39fc25 commit 3200971

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/workflows/docker-example.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ jobs:
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333

34-
- name: Build Docker example images
34+
- name: install npm dependencies
35+
run: |
36+
cd docker
37+
yarn --ignore-scripts
38+
39+
- name: Build trace viewer image
3540
uses: nick-invision/retry@v3
3641
with:
3742
timeout_minutes: 10
@@ -43,7 +48,7 @@ jobs:
4348
yarn build:docker:${{ matrix.params.name }}
4449
on_retry_command: cd ..
4550

46-
- name: Build "demo" version of the trace viewer image
51+
- name: Build "demo" version of trace viewer image
4752
uses: nick-invision/retry@v3
4853
with:
4954
timeout_minutes: 10
@@ -55,20 +60,23 @@ jobs:
5560
yarn build:docker:${{ matrix.params.name }}-demo
5661
on_retry_command: cd ..
5762

58-
- name: Run trace viewer image base image
63+
- name: Run trace viewer base image
5964
run: |
6065
cd docker
6166
docker run --init -d -p 0.0.0.0:3000:4000 --name tv-${{ matrix.params.name }}-1 tv-${{ matrix.params.name }}
6267
6368
- name: Test trace viewer base image
6469
run: |
6570
cd docker
66-
yarn --ignore-scripts
6771
yarn --cwd ${{ matrix.params.resources-folder }} test
6872
docker kill tv-${{ matrix.params.name }}-1
6973
7074
- name: Run "demo" version of the trace viewer docker image
7175
run: |
72-
cd docker
73-
docker run --init -d --network host -p 0.0.0.0:3000:4000 tv-${{ matrix.params.name }}-demo
76+
docker run --init -d -p 0.0.0.0:3000:4000 --name tv-${{ matrix.params.name }}-demo-1 tv-${{ matrix.params.name }}-demo
7477
78+
- name: Test trace viewer demo image
79+
run: |
80+
cd docker
81+
yarn --cwd ${{ matrix.params.resources-folder }} test-demo
82+
docker kill tv-${{ matrix.params.name }}-demo-1

docker/theia-app-theia-ext/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"start": "theia start",
3333
"watch": "theia build --watch",
3434
"clean": "echo 'Docker: Fake clean!!!'",
35-
"test": "yarn --cwd ../../playwright-tests ui-tests"
35+
"test": "yarn --cwd ../../playwright-tests ui-tests",
36+
"test-demo": "echo \"TODO: Add tests\" && /bin/true"
3637
},
3738
"engines": {
3839
"yarn": ">=1.7.0 <2",

docker/theia-app-vscode-ext/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"start": "theia start --plugins=local-dir:plugins",
3535
"watch": "theia build --watch",
3636
"download:plugins": "theia download:plugins --rate-limit=15 --parallel=false --ignore-errors",
37-
"test": "echo \"TODO: Add tests\" && /bin/true"
37+
"test": "echo \"TODO: Add tests\" && /bin/true",
38+
"test-demo": "echo \"TODO: Add tests\" && /bin/true"
3839
},
3940
"engines": {
4041
"yarn": ">=1.7.0 <2",

0 commit comments

Comments
 (0)