From 80390595b0d08b9f7a68a7cb437411fdde7afb57 Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Wed, 8 May 2024 16:10:19 +0300 Subject: [PATCH] Do not run all tests on changes to version.txt --- .cirrus.yml | 2 +- .github/workflows/centos-and-fedora.yml | 2 ++ .github/workflows/debian.yml | 2 ++ .github/workflows/fuzzing.yml | 1 + .github/workflows/macos.yml | 2 ++ .github/workflows/opensuse.yml | 2 ++ .github/workflows/time-machine.yml | 2 ++ .github/workflows/windows-msys2.yml | 2 ++ .github/workflows/windows-native.yml | 2 ++ 9 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 2fd7d95a23..8f0d736585 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -28,7 +28,7 @@ freebsd_instance: task: name: build only_if: $CIRRUS_BRANCH == 'main' || $CIRRUS_BRANCH =~ 'release/.*' || $CIRRUS_PR != '' - skip: "!changesInclude('.cirrus.yml') && changesIncludeOnly('/*.sh', '/.*', '/_*', 'Brewfile', 'docs/**', '**.adoc', '**.md', '**.nix', 'flake.lock', '.github/**') || $CIRRUS_CHANGE_MESSAGE =~ '.*skip ci.*'" + skip: "!changesInclude('.cirrus.yml') && changesIncludeOnly('/*.sh', '/.*', '/_*', 'Brewfile', 'docs/**', '**.adoc', '**.md', '**.nix', 'flake.lock', 'version.txt', '.github/**') || $CIRRUS_CHANGE_MESSAGE =~ '.*skip ci.*'" env: matrix: - { CIRRUS_CLONE_SUBMODULES: true, CRYPTO_BACKEND: openssl, CRYPTO_LIB_INSTALL: openssl, SHARED_LIBS: on, RNP_LOG_CONSOLE: 1 } diff --git a/.github/workflows/centos-and-fedora.yml b/.github/workflows/centos-and-fedora.yml index 7594d4efeb..6b7aeb2a81 100644 --- a/.github/workflows/centos-and-fedora.yml +++ b/.github/workflows/centos-and-fedora.yml @@ -14,6 +14,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/centos-and-fedora.yml' pull_request: @@ -27,6 +28,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 831c621ea2..6c18735037 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -15,6 +15,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/debian.yml' pull_request: @@ -28,6 +29,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index 4981554154..2acb5816c9 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -12,6 +12,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 8ab147157e..d538724771 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -39,6 +39,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/macos.yml' pull_request: @@ -51,6 +52,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' diff --git a/.github/workflows/opensuse.yml b/.github/workflows/opensuse.yml index d02381c96f..68430590d3 100644 --- a/.github/workflows/opensuse.yml +++ b/.github/workflows/opensuse.yml @@ -15,6 +15,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/opensuse.yml' pull_request: @@ -28,6 +29,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' diff --git a/.github/workflows/time-machine.yml b/.github/workflows/time-machine.yml index d36c2f0708..87d4ab3d33 100644 --- a/.github/workflows/time-machine.yml +++ b/.github/workflows/time-machine.yml @@ -37,6 +37,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/time-machine.yml' pull_request: @@ -50,6 +51,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/time-machine.yml' workflow_dispatch: diff --git a/.github/workflows/windows-msys2.yml b/.github/workflows/windows-msys2.yml index 70fa272bbb..2c45ca04c5 100644 --- a/.github/workflows/windows-msys2.yml +++ b/.github/workflows/windows-msys2.yml @@ -41,6 +41,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/windows-msys2.yml' pull_request: @@ -54,6 +55,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 6f10ec278a..2c1ee5f754 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -38,6 +38,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' - '.github/workflows/*.yml' - '!.github/workflows/windows-native.yml' pull_request: @@ -51,6 +52,7 @@ on: - '**.md' - '**.nix' - 'flake.lock' + - 'version.txt' concurrency: group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'