[CI] [UI tests] [Docker example] Build and test the docker example app, streamline it for size. #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |