Skip to content
Snippets Groups Projects
Verified Commit d5095c3a authored by Jakob Moser's avatar Jakob Moser
Browse files

Try adding frontend tests to pipeline

parent 5dfb6a96
No related branches found
No related tags found
No related merge requests found
Pipeline #6725 failed
......@@ -25,3 +25,32 @@ lint-openapi:
stage: test
script: openapi lint portal/static/docs/api/v0/openapi-spec.yaml
allow_failure: true
test-frontend:
image: python
stage: test
before_script:
- apt-get update
- apt-get install -y ca-certificates curl gnupg faketime
- mkdir -p /etc/apt/keyrings
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
- apt-get update
- apt-get install -y nodejs libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- pip install --upgrade pip setuptools
- pip install pipenv
- pipenv requirements > requirements.txt
- pip uninstall --yes pipenv
- pip install -r requirements.txt
- npm install cypress
script:
- mkdir instance
- export FLASK_APP=portal
- faketime '2024-09-26 13:37:00' flask run &
- faketime '2024-09-26 13:37:00' npx cypress run
artifacts:
when: always
paths:
- cypress/videos
- cypress/screenshots
expire_in: 1 week
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment