chore(gitlab-ci): replace check job with frontend and backend test jobs using make targets
This commit is contained in:
parent
5ae557a5a8
commit
7d06feb764
@ -230,21 +230,47 @@ uniworx:exe:uniworxload:
|
|||||||
retry: 2
|
retry: 2
|
||||||
interruptible: true
|
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
|
stage: test
|
||||||
script:
|
script:
|
||||||
- xzcat frontend.nar.xz | nix-store --import
|
- "nix shell .#gnumake .#nodejs-14_x --command make frontend-test"
|
||||||
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
|
||||||
- nix -L flake check .
|
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
|
cache: *frontend-cache
|
||||||
needs:
|
needs:
|
||||||
- job: node modules # transitive
|
- job: node modules
|
||||||
artifacts: false
|
|
||||||
- job: frontend build
|
|
||||||
artifacts: true
|
artifacts: true
|
||||||
retry: 2
|
retry: 2
|
||||||
interruptible: true
|
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:
|
container:
|
||||||
stage: container
|
stage: container
|
||||||
script:
|
script:
|
||||||
|
|||||||
Reference in New Issue
Block a user