chore(gitlab-ci): replace check job with frontend and backend test jobs using make targets

This commit is contained in:
Sarah Vaupel 2024-06-14 01:56:51 +02:00
parent 5ae557a5a8
commit 7d06feb764

View File

@ -230,21 +230,47 @@ uniworx:exe:uniworxload:
retry: 2
interruptible: true
check:
# check:
# stage: test
# script:
# - xzcat frontend.nar.xz | nix-store --import
# - xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
# - nix -L flake check .
# before_script: *nix-before
# needs:
# - job: node modules # transitive
# artifacts: false
# - job: frontend build
# artifacts: true
# retry: 2
# interruptible: true
frontend test:
stage: test
script:
- xzcat frontend.nar.xz | nix-store --import
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
- nix -L flake check .
- "nix shell .#gnumake .#nodejs-14_x --command make frontend-test"
before_script: *nix-before
cache: *frontend-cache
needs:
- job: node modules # transitive
artifacts: false
- job: frontend build
- job: node modules
artifacts: true
retry: 2
interruptible: true
backend test:
stage: test
script:
- "nix shell .#gnumake .#stack --command make backend-test"
before_script: *nix-before
cache: *stack-cache
needs:
- job: backend dependencies
artifacts: true
retry: 2
interruptible: true
container:
stage: container
script: