feat: přidání testů – Jest unit testy + Playwright E2E + CI pipeline #54

Open
batmanisko wants to merge 23 commits from feat/tests into master
Showing only changes of commit bfe819020d - Show all commits
+9 -1
View File
@@ -8,6 +8,12 @@ variables:
when: when:
- event: [push, pull_request] - event: [push, pull_request]
services:
redis:
image: redis/redis-stack-server:7.4.0-v1
environment:
REDIS_ARGS: "--save '' --loglevel warning"
steps: steps:
- name: Generate TypeScript types - name: Generate TypeScript types
image: *node_image image: *node_image
@@ -70,7 +76,9 @@ steps:
NODE_ENV: test NODE_ENV: test
JWT_SECRET: test-secret-min-32-chars-aaaaaaa! JWT_SECRET: test-secret-min-32-chars-aaaaaaa!
MOCK_DATA: "true" MOCK_DATA: "true"
STORAGE: json STORAGE: redis
REDIS_HOST: redis
REDIS_PORT: "6379"
HTTP_REMOTE_USER_ENABLED: "true" HTTP_REMOTE_USER_ENABLED: "true"
HTTP_REMOTE_USER_HEADER_NAME: remote-user HTTP_REMOTE_USER_HEADER_NAME: remote-user
HTTP_REMOTE_TRUSTED_IPS: "127.0.0.1,::1,::ffff:127.0.0.1" HTTP_REMOTE_TRUSTED_IPS: "127.0.0.1,::1,::ffff:127.0.0.1"