Display only visible tags and categories in API List #28
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: 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 |