diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c630c71e3..06bb69de4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -240,6 +240,36 @@ container: rules: &release-rules - if: $CI_COMMIT_TAG =~ /^v/ +test container: + stage: container:build + script: + - xzcat uniworx:exe:uniworx.nar.xz | nix-store --import + - source .gitlab-ci/construct-flake-url.sh + - cp -pr --reflink=auto -L $(nix build --print-out-paths "${FLAKE}#uniworxTestDocker") uniworx.tar.gz + before_script: *nix-before + needs: + - job: node dependencies # transitive + artifacts: false + - job: well known # transitive + artifacts: false + - job: frontend # tranitive + artifacts: false + - job: uniworx:lib:uniworx # transitive + artifacts: false + - job: uniworx:exe:uniworx + artifacts: true + - job: check # sanity + artifacts: false + artifacts: + paths: + - uniworx.tar.gz + name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}" + expire_in: "1 day" + retry: 2 + interruptible: true + rules: &test-release-rules + - if: $CI_COMMIT_TAG =~ /^v/ && $CI_COMMIT_BRANCH == "test" + parse changelog: stage: prepare release needs: