Skip to content

feat: enhance landing page with cookie consent and privacy policies #16

feat: enhance landing page with cookie consent and privacy policies

feat: enhance landing page with cookie consent and privacy policies #16

Workflow file for this run

name: PR Tests
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-backend:
name: ESLint backend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: apps/backend/package-lock.json
- name: Install deps
run: npm ci
working-directory: apps/backend
- name: Run ESLint
run: npx eslint .
working-directory: apps/backend
lint-frontend:
name: ESLint frontend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: apps/frontend/package-lock.json
- name: Install deps
run: npm ci
working-directory: apps/frontend
- name: Run ESLint
run: npx eslint .
working-directory: apps/frontend
lint-landing:
name: ESLint landing
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: apps/landing/package-lock.json
- name: Install deps
run: npm ci
working-directory: apps/landing
- name: Run ESLint
run: npx eslint .
working-directory: apps/landing
tests-backend:
name: Backend tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: apps/backend/package-lock.json
- name: Install deps
run: npm ci
working-directory: apps/backend
- name: Run tests
run: npm test -- --ci
working-directory: apps/backend
python-tests:
name: Python tests (lemmas)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Python deps
run: |
python -m pip install --upgrade pip
pip install -r apps/lemmas/requirements.txt
pip install pytest
python -m spacy download de_core_news_md
- name: Run pytest
run: pytest -q apps/lemmas