build(deps-dev): bump vite from 5.0.12 to 5.2.10 in /frontend #2011
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install modules | |
run: cd frontend && npm ci | |
- name: version | |
run: cd frontend && npx prettier --version | |
- name: linting | |
run: cd frontend && npm run lint | |
check-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install modules | |
run: cd frontend && npm ci | |
- name: Svelte check | |
run: cd frontend && npm run check | |
backend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
with: | |
src: "backend/zeno_backend/" | |
- uses: chartboost/ruff-action@v1 | |
with: | |
args: "format --check" | |
src: "backend/zeno_backend/" | |
typecheck-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: jakebailey/pyright-action@v2 | |
test-integration: | |
runs-on: ubuntu-latest | |
env: | |
ZENO_USER_POOL_AUTH_REGION: ${{ secrets.ZENO_USER_POOL_AUTH_REGION }} | |
ZENO_USER_POOL_CLIENT_ID: ${{ secrets.ZENO_USER_POOL_CLIENT_ID }} | |
ZENO_USER_POOL_ID: ${{ secrets.ZENO_USER_POOL_ID }} | |
HUB_PASSWORD: ${{ secrets.HUB_PASSWORD }} | |
HUB_API_KEY: ${{ secrets.HUB_API_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install Zeno Client | |
run: | | |
python -m pip install --upgrade pip | |
pip install zeno-client | |
pip install pytest | |
- name: Install node | |
run: | | |
cd frontend | |
npm ci | |
- name: Set up docker containers | |
run: | | |
docker compose -f ./docker-compose-test.yml up -d | |
- name: Install Playwright Browsers | |
run: | | |
cd frontend | |
npx playwright install --with-deps | |
- name: Get Docker status | |
run: | | |
docker ps -a | |
docker compose -f ./docker-compose-test.yml logs | |
- name: Run Playwright tests | |
run: | | |
cd frontend | |
HUB_PASSWORD=$HUB_PASSWORD HUB_USERNAME=test npx playwright test | |
- name: Run client tests | |
run: | | |
HUB_API_KEY=$HUB_API_KEY pytest backend/tests/* | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: frontend/playwright-report/ | |
retention-days: 30 |