From 3f434dff0c870718aa24288530987b45863b1a55 Mon Sep 17 00:00:00 2001 From: Denis Pisarev Date: Tue, 16 Mar 2021 20:37:03 +0100 Subject: [PATCH] CI: run cargo deny nightly (#8376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * CI: run cargo deny only nightly before it's fixed * Release missing 3.0 crates: pallet-node-authorization sc-finality-grandpa-warp-sync (#8360) * bump pallet-node-authorization * prepping sc-finality-grandpa-warp-sync for release * bump Cargo.lock * Update ss58-registry.json (#8351) Added Plasm Network description * [CI] Require D*-audit labels for any runtime changes (#8345) * add check for audit labels if runtime change * fix shellcheck nits * include lib.sh in check_runtime.sh * fix check_labels.sh * fix check_labels.sh * oops, this is github actions... * why wont this work * fetch all refs * Update check-labels.yml * print env - wtf is happening * checkout the PR... * ffs * fix * REVERT ME: test runtime check * Revert "REVERT ME: test runtime check" This reverts commit 0fd2b04abeeac12dd8ede4c0708cb796f9e3e722. * Fix CI benchmark check (#8380) * CI: run cargo deny only nightly before it's fixed Co-authored-by: Benjamin Kampmann Co-authored-by: Aleksandr Krupenkin Co-authored-by: Martin Pugh Co-authored-by: Bastian Köcher --- .gitlab-ci.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9619e600430a7..d29fb27ec411e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -119,6 +119,11 @@ default: - if: $CI_COMMIT_REF_NAME == "tags" - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 +.nightly-pipeline: &nightly-pipeline + rules: + # this job runs only on nightly pipeline with the mentioned variable, against `master` branch + - if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly" + #### stage: .pre skip-if-draft: @@ -199,17 +204,7 @@ test-prometheus-alerting-rules: cargo-deny: stage: test <<: *docker-env - rules: - - if: $CI_PIPELINE_SOURCE == "pipeline" - when: never - - changes: - - "Cargo.lock" - - "**/Cargo.toml" - - if: $CI_PIPELINE_SOURCE == "web" - - if: $CI_PIPELINE_SOURCE == "schedule" - - if: $CI_COMMIT_REF_NAME == "master" - - if: $CI_COMMIT_REF_NAME == "tags" - - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 + <<: *nightly-pipeline script: - cargo deny check --hide-inclusion-graph -c .maintain/deny.toml after_script: @@ -654,9 +649,7 @@ deploy-prometheus-alerting-rules: trigger-simnet: stage: deploy - rules: - # this job runs only on nightly pipeline with the mentioned variable, against `master` branch - - if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly" + <<: *nightly-pipeline needs: - job: publish-docker-substrate trigger: