Skip to content

Commit

Permalink
Add docker-example workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Mar 5, 2024
1 parent c15a308 commit bbf9977
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/docker-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: docker-example

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build-and-test:
name: Build image
runs-on: ${{ matrix.os }}
timeout-minutes: 15

strategy:
matrix:
os: [ubuntu-latest]

steps:

- uses: actions/checkout@v3

- name: Build example-docker
run: |
cd examples/docker
docker build -t tte .
- name: Test
run: |
docker run --init -d -p 0.0.0.0:4000:4000 --name tte-1 tte
# ln -s example-package.json package.json
# yarn test:docker
sleep 20
wget https://localhost:4000
3 changes: 2 additions & 1 deletion examples/docker/example-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"scripts": {
"prepare": "theia build",
"start": "theia start",
"watch": "theia build --watch"
"watch": "theia build --watch",
"test:docker": "wget localhost:4000"
},
"engines": {
"yarn": "1.0.x || >=1.2.1",
Expand Down

0 comments on commit bbf9977

Please sign in to comment.