From 596b5df7472666092d6e6bd121079cc7243d2788 Mon Sep 17 00:00:00 2001 From: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Date: Thu, 11 Aug 2022 15:23:43 +0200 Subject: [PATCH] [ci] Run check-runtime only for PRs (#5858) * [ci] Run check-runtime only for PRs * fix refs * remove pr ref from check-runtime * adjust dependent jobs * fix dependency --- polkadot/.gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index 24d8ff0dbe..2ea530e03b 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -172,7 +172,8 @@ check-runtime: stage: stage1 image: paritytech/tools:latest <<: *kubernetes-env - <<: *test-refs + rules: + - if: $CI_COMMIT_REF_NAME =~ /^release-v[0-9]+\.[0-9]+.*$/ # i.e. release-v0.9.27 variables: GITLAB_API: "https://gitlab.parity.io/api/v4" GITHUB_API_PROJECT: "parity%2Finfrastructure%2Fgithub-api" @@ -307,7 +308,7 @@ build-staking-miner: stage: stage2 # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs needs: - - job: check-runtime + - job: cargo-fmt artifacts: false <<: *docker-env <<: *test-pr-refs @@ -336,7 +337,7 @@ test-node-metrics: stage: stage2 # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs needs: - - job: check-runtime + - job: cargo-fmt artifacts: false <<: *docker-env <<: *compiler-info