Skip to content

Display only visible tags and categories in API List #28

Display only visible tags and categories in API List

Display only visible tags and categories in API List #28

Workflow file for this run

name: Playwright Tests
on:
push:
paths:
- 'daikoku/app/**'
- 'daikoku/javascript/**'
- '.github/workflows/playwright.yml'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- uses: sbt/setup-sbt@v1
- uses: coursier/cache-action@v6
- name: Installing dependencies
run: |
cd daikoku/javascript
rm -rf node_modules/
npm ci
npm run build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: initialize backend build
run: |
cd daikoku
sbt -Dsbt.color=always -Dsbt.supershell=false ';clean;compile;dist'
sbt 'docker:publishLocal'
- name: Docker Compose Action
uses: hoverkraft-tech/[email protected]
with:
compose-file: "./daikoku/javascript/tests/docker-compose.yml"
- name: Wait for API to be ready
run: |
echo "Waiting for API to be up..."
until curl --silent --fail http://localhost:13200/health; do
printf '.'
sleep 2
done
echo "API is ready!"
- name: Run Playwright tests
run: |
pwd
cd ./daikoku/javascript/tests
npm ci
npx playwright install --with-deps chromium
npx playwright test --project chromium
env:
CI: true