Skip to content

Explicitly connect to network #3204

Explicitly connect to network

Explicitly connect to network #3204

Workflow file for this run

name: CI
on:
push:
branches: [ v2 ]
jobs:
nodejs:
runs-on: ubuntu-latest
steps:
- uses: textbook/take-action@nodejs
with:
node-version: 20
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm test
- run: npm run e2e
docker:
runs-on: ubuntu-latest
steps:
- uses: textbook/take-action@nodejs
with:
node-version: 20
- run: npx playwright install --with-deps
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
load: true
push: false
tags: textbook/starter-kit:v2
- run: |
docker run --detach --init --network ${{ job.container.network }} --publish 80:4321 textbook/starter-kit:v2
- run: npm run e2e
env:
PLAYWRIGHT_BASE_URL: http://localhost:4321