frontend dist reorg #6
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 UI | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build Docker container | |
run: docker build -t ui-app . | |
- name: Start Docker container | |
env: | |
HOST: 0.0.0.0 | |
PORT: 8000 | |
run: | | |
docker run -d -e HOST -e PORT -p 8000:8000 --name ui ui-app | |
sleep 5 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Debug | |
run: curl -v http://localhost:8000 | |
- name: Setup npm | |
run: npm init -y | |
- name: Install Playwright | |
run: npm install @playwright/test | |
- name: Install Playwright Browsers | |
run: npx playwright install chromium --with-deps | |
- name: Run Playwright tests | |
run: npx playwright test | |