[前][次][番号順一覧][スレッド一覧]

ruby-changes:70259

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 Dec 2021 17:51:01 +0900 (JST)
Subject: [ruby-changes:70259] 5bf0060e0a (master): [DOC] Skip tests if only documents change [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=5bf0060e0a

From 5bf0060e0a506d8b7a85e0f63898cb1cc8d4dcba Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 25 Nov 2021 00:38:37 +0900
Subject: [DOC] Skip tests if only documents change [ci skip]

Run only checks for source code.  Currently, our CIs do almost
nothing about the documents.
---
 .appveyor.yml                            | 1 +
 .github/workflows/baseruby.yml           | 1 +
 .github/workflows/check_dependencies.yml | 1 +
 .github/workflows/codeql-analysis.yml    | 1 +
 .github/workflows/compilers.yml          | 1 +
 .github/workflows/mingw.yml              | 1 +
 .github/workflows/mjit.yml               | 1 +
 .github/workflows/spec_guards.yml        | 1 +
 .github/workflows/ubuntu.yml             | 1 +
 .github/workflows/windows.yml            | 1 +
 .github/workflows/yjit-ubuntu.yml        | 1 +
 .github/workflows/yjit_asm_tests.yml     | 1 +
 .travis.yml                              | 2 ++
 13 files changed, 14 insertions(+)

diff --git a/.appveyor.yml b/.appveyor.yml
index d2dd2c9e156..037c8d6df6b 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -11,6 +11,7 @@ clone_depth: 10 https://github.com/ruby/ruby/blob/trunk/.appveyor.yml#L11
 platform:
   - x64
 skip_commits:
+  message: /^\[DOC\]/
   files:
     - doc/*
     - '**/*.md'
diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml
index 24b867c7fc0..4e5e40d77c5 100644
--- a/.github/workflows/baseruby.yml
+++ b/.github/workflows/baseruby.yml
@@ -20,6 +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]') }}
     strategy:
       matrix:
         ruby:
diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml
index c68e49a4641..35fd2995547 100644
--- a/.github/workflows/check_dependencies.yml
+++ b/.github/workflows/check_dependencies.yml
@@ -22,6 +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]') }}
     steps:
       - name: Install libraries
         run: |
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index d22da8e481a..486f4a3b5a4 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -23,6 +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]') }}
 
     env:
       enable_install_doc: no
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 2c2b6598f76..23529e5036e 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -188,6 +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]') }}
     steps:
       - run: id
         working-directory:
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
index c2db3df1ade..b93c653eb32 100644
--- a/.github/workflows/mingw.yml
+++ b/.github/workflows/mingw.yml
@@ -42,6 +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]') }}
     steps:
       - run: mkdir build
         working-directory:
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml
index 0578104c7f5..540c8e9c806 100644
--- a/.github/workflows/mjit.yml
+++ b/.github/workflows/mjit.yml
@@ -23,6 +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]') }}
     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 79ef8a6cc0d..27acbdad12c 100644
--- a/.github/workflows/spec_guards.yml
+++ b/.github/workflows/spec_guards.yml
@@ -20,6 +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]') }}
     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 e63e12ac0ed..1c3f27eaef9 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -36,6 +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]') }}
     steps:
       - run: mkdir build
         working-directory:
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 60f9b760eca..79f9dd3be24 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -28,6 +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]') }}
     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 966f9fd1c70..9e19323cf8a 100644
--- a/.github/workflows/yjit-ubuntu.yml
+++ b/.github/workflows/yjit-ubuntu.yml
@@ -43,6 +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]') }}
     steps:
       - run: mkdir build
         working-directory:
diff --git a/.github/workflows/yjit_asm_tests.yml b/.github/workflows/yjit_asm_tests.yml
index 58f294f1374..e79948217f1 100644
--- a/.github/workflows/yjit_asm_tests.yml
+++ b/.github/workflows/yjit_asm_tests.yml
@@ -19,6 +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]') }}
     steps:
       - name: Install dependencies
         run: |
diff --git a/.travis.yml b/.travis.yml
index eb816b815ba..0255e9611fa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,8 @@ language: c https://github.com/ruby/ruby/blob/trunk/.travis.yml#L13
 
 os: linux
 
+if: commit_message !~ /^\[DOC\]/
+
 dist: focal
 
 git:
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]