group test (frontend) - #1879

This commit is contained in:
Laurent GAY
2025-11-21 18:02:20 +01:00
committed by setop
parent 4255219e9f
commit 9d0b54a679
3 changed files with 41 additions and 40 deletions

View File

@@ -2,6 +2,7 @@ image: tcitworld/mobilizon-ci
stages:
- install
- security
- check
- build-js
- test
@@ -50,6 +51,22 @@ install:
- mix deps.get
- mix compile
security-frontend:
stage: security
script:
- npm audit
allow_failure: true
needs:
- install
security-backend:
stage: security
script:
- mix hex.audit
allow_failure: true
needs:
- install
lint-elixir:
stage: check
before_script:
@@ -78,6 +95,28 @@ lint-front:
- npx prettier -c . || export EXITVALUE=1
- exit $EXITVALUE
deps:
stage: check
before_script:
- apt update
- apt install -y gawk
- rm -rf ~/.hex/cache.ets
- mix deps.get
script:
- ./check_deps.sh
allow_failure: true
needs:
- install
i18n-frontend:
image: python:alpine
stage: check
script:
- python3 check_i18n.py
allow_failure: true
needs:
- install
build-frontend:
stage: build-js
image: node:22
@@ -94,44 +133,6 @@ build-frontend:
needs:
- lint-front
deps:
stage: check
before_script:
- apt update
- apt install -y gawk
- rm -rf ~/.hex/cache.ets
- mix deps.get
script:
- ./check_deps.sh
allow_failure: true
needs:
- install
security-frontend:
stage: check
script:
- npm audit
allow_failure: true
needs:
- install
security-backend:
stage: check
script:
- mix hex.audit
allow_failure: true
needs:
- install
i18n-frontend:
image: python:alpine
stage: check
script:
- python3 check_i18n.py
allow_failure: true
needs:
- install
exunit:
stage: test
services: