Skip to content

CI

CI #507

Workflow file for this run

name: CI
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Run API tests
run: |
npm ci
npm test
- name: Install dependencies for UI tests
working-directory: ./client
run: |
npm ci
npx playwright install --with-deps
- name: Run Playwright UI tests
run: npm run test:ui
- name: Deploy Playwright report to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/playwright-report