From 30faad993f48e68f5a178b764174cfaf8d1e073b Mon Sep 17 00:00:00 2001 From: Piotr Zajac Date: Mon, 15 Jan 2024 12:16:54 +0100 Subject: [PATCH] Align root workflows and filter event triggers --- .github/workflows/cicd.yml | 10 ++++++++-- .github/workflows/codeql.yml | 2 ++ .github/workflows/fossa-scan.yml | 2 ++ .github/workflows/semgrep.yml | 6 ++++++ .github/workflows/test-mutations.yml | 6 ++++-- 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 44a35a82..6c8dcead 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -3,23 +3,29 @@ on: pull_request: paths: - - 'src/**' - 'GitVersion.yml' + - 'src/**' + - '!src/qodana.yml' - '.github/actions/**' - '.github/workflows/**' - '!.github/workflows/codeql.yml' - '!.github/workflows/fossa-scan.yml' + - '!.github/workflows/qodana.yml' + - '!.github/workflows/semgrep.yml' types: [opened, synchronize, reopened] push: branches: - 'master' paths: - - 'src/**' - 'GitVersion.yml' + - 'src/**' + - '!src/qodana.yml' - '.github/actions/**' - '.github/workflows/**' - '!.github/workflows/codeql.yml' - '!.github/workflows/fossa-scan.yml' + - '!.github/workflows/qodana.yml' + - '!.github/workflows/semgrep.yml' workflow_dispatch: inputs: buildAutoFakeItEasy: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4eaabc0f..525bfc82 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - 'src/**' + - '!src/qodana.yml' - '.github/workflows/codeql.yml' types: [opened, synchronize, reopened] push: @@ -11,6 +12,7 @@ on: - 'master' paths: - 'src/**' + - '!src/qodana.yml' - '.github/workflows/codeql.yml' schedule: - cron: '20 23 * * 0' diff --git a/.github/workflows/fossa-scan.yml b/.github/workflows/fossa-scan.yml index 88933ded..5b286dd7 100644 --- a/.github/workflows/fossa-scan.yml +++ b/.github/workflows/fossa-scan.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - 'src/**' + - '!src/qodana.yml' - '.github/workflows/fossa-scan.yml' types: [opened, synchronize, reopened] push: @@ -11,6 +12,7 @@ on: - 'master' paths: - 'src/**' + - '!src/qodana.yml' - '.github/workflows/fossa-scan.yml' workflow_dispatch: diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 63cfb9bf..ab59fb63 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - 'src/**' + - '!src/qodana.yml' - '.github/workflows/semgrep.yml' types: [opened, synchronize, reopened] push: @@ -11,11 +12,16 @@ on: - 'master' paths: - 'src/**' + - '!src/qodana.yml' - '.github/workflows/semgrep.yml' schedule: - cron: '38 7 * * 0' # Random time workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: semgrep: name: semgrep/ci diff --git a/.github/workflows/test-mutations.yml b/.github/workflows/test-mutations.yml index 0cbe485a..941abdb5 100644 --- a/.github/workflows/test-mutations.yml +++ b/.github/workflows/test-mutations.yml @@ -3,8 +3,9 @@ name: '👾 Stryker.NET: Mutation testing' on: pull_request: paths: - - 'src/**' - 'stryker-config.yml' + - 'src/**' + - '!src/qodana.yml' - '.github/workflows/test-mutations.yml' - '.github/actions/materialize-signing-key/**' types: [opened, synchronize, reopened] @@ -12,8 +13,9 @@ on: branches: - 'master' paths: - - 'src/**' - 'stryker-config.yml' + - 'src/**' + - '!src/qodana.yml' - '.github/workflows/test-mutations.yml' - '.github/actions/materialize-signing-key/**' workflow_dispatch: