frontend.yml 872 B

1234567891011121314151617181920212223242526272829303132
  1. frontend:vitest:
  2. stage: test
  3. extends:
  4. - .job_rules_default
  5. cache: !reference [.cache, read_only_nodejs]
  6. before_script:
  7. - !reference [.scripts, yarn_install]
  8. script:
  9. - yarn test
  10. - echo "Also test eslint-plugin-zammad..."
  11. - cd .eslint-plugin-zammad
  12. - yarn install || yarn install || yarn install # retry on errors
  13. - yarn test
  14. frontend:cypress:
  15. stage: test
  16. extends:
  17. - .job_rules_default
  18. cache: !reference [.cache, read_only_nodejs]
  19. before_script:
  20. - !reference [.scripts, yarn_install]
  21. - yarn cypress:install
  22. script:
  23. - sysctl -w fs.inotify.max_user_watches=524288 # see https://github.com/cypress-io/cypress/issues/6960
  24. - yarn test:ci:ct
  25. artifacts:
  26. expire_in: 1 week
  27. when: on_failure
  28. paths:
  29. - .cypress/**/__diff_output__/*
  30. - .cypress/videos/**/*
  31. - .cypress/screenshots/**/*