ruby-changes:70302
From: Nobuyoshi <ko1@a...>
Date: Sat, 18 Dec 2021 13:08:39 +0900 (JST)
Subject: [ruby-changes:70302] 922a81a994 (master): Skip tests on pull requests labeled as Documentation
https://git.ruby-lang.org/ruby.git/commit/?id=922a81a994 From 922a81a99418c992f4039b27a8341f2ee96d2d0c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 18 Dec 2021 12:31:43 +0900 Subject: Skip tests on pull requests labeled as Documentation --- .github/workflows/baseruby.yml | 2 +- .github/workflows/check_dependencies.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/compilers.yml | 2 +- .github/workflows/mingw.yml | 2 +- .github/workflows/mjit.yml | 2 +- .github/workflows/spec_guards.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- .github/workflows/windows.yml | 2 +- .github/workflows/yjit-ubuntu.yml | 2 +- .github/workflows/yjit_asm_tests.yml | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml index 4e5e40d77c5..cf86c2d7d71 100644 --- a/.github/workflows/baseruby.yml +++ b/.github/workflows/baseruby.yml @@ -20,7 +20,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/baseruby.yml#L20 baseruby: name: BASERUBY runs-on: ubuntu-20.04 - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} strategy: matrix: ruby: diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml index 35fd2995547..6c7e8e57871 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -22,7 +22,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_dependencies.yml#L22 os: [ubuntu-20.04] fail-fast: true runs-on: ${{ matrix.os }} - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: - name: Install libraries run: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 486f4a3b5a4..f81c79902de 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,7 +23,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/codeql-analysis.yml#L23 # CodeQL runs on ubuntu-latest and windows-latest runs-on: ubuntu-latest - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} env: enable_install_doc: no diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index 23529e5036e..2af9fa55d8f 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -188,7 +188,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/compilers.yml#L188 container: image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || 'clang-14' }} options: --user root - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: - run: id working-directory: diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index b93c653eb32..0d7eef67c07 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -42,7 +42,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L42 base_ruby: head test_task: [ "check" ] # to make job names consistent fail-fast: false - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: - run: mkdir build working-directory: diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 540c8e9c806..75e5b1088cb 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -23,7 +23,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mjit.yml#L23 jit_opts: [ "--mjit", "--mjit-wait" ] fail-fast: false runs-on: ubuntu-latest - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} env: TESTOPTS: '-q --tty=no' RUN_OPTS: '--disable-gems ${{ matrix.jit_opts }} --mjit-debug=-ggdb3' diff --git a/.github/workflows/spec_guards.yml b/.github/workflows/spec_guards.yml index 27acbdad12c..3f829650d57 100644 --- a/.github/workflows/spec_guards.yml +++ b/.github/workflows/spec_guards.yml @@ -20,7 +20,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/spec_guards.yml#L20 rubyspec: name: Rubyspec runs-on: ubuntu-20.04 - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} strategy: matrix: # Specs from ruby/spec should still run on all supported Ruby versions. diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 1c3f27eaef9..ff79dad880f 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -36,7 +36,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L36 GITPULLOPTIONS: --no-tags origin ${{github.ref}} RUBY_DEBUG: ci runs-on: ${{ matrix.os }} - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: - run: mkdir build working-directory: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 79f9dd3be24..574bfbf4748 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,7 +28,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L28 # vcvars: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"' fail-fast: false runs-on: ${{ matrix.os }} - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} name: VisualStudio ${{ matrix.vs }} env: GITPULLOPTIONS: --no-tags origin ${{github.ref}} diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml index 9e19323cf8a..c479b8a624a 100644 --- a/.github/workflows/yjit-ubuntu.yml +++ b/.github/workflows/yjit-ubuntu.yml @@ -43,7 +43,7 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/yjit-ubuntu.yml#L43 RUN_OPTS: ${{ matrix.yjit_opts }} RUBY_DEBUG: ci runs-on: ${{ matrix.os }} - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: - run: mkdir build working-directory: diff --git a/.github/workflows/yjit_asm_tests.yml b/.github/workflows/yjit_asm_tests.yml index e79948217f1..8a9052dd415 100644 --- a/.github/workflows/yjit_asm_tests.yml +++ b/.github/workflows/yjit_asm_tests.yml @@ -19,7 +19,7 @@ concurrency: https://github.com/ruby/ruby/blob/trunk/.github/workflows/yjit_asm_tests.yml#L19 jobs: test: runs-on: ubuntu-latest - if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }} steps: - name: Install dependencies run: | -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/