diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-25 00:38:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-16 17:50:20 +0900 |
commit | 5bf0060e0a506d8b7a85e0f63898cb1cc8d4dcba (patch) | |
tree | b056a8aa2f4bae1550a025283dd17525b3589eee /.github/workflows | |
parent | 32ee6f80ee1737699ead57bf577f0b1b90c2523e (diff) | |
download | ruby-5bf0060e0a506d8b7a85e0f63898cb1cc8d4dcba.tar.gz |
[DOC] Skip tests if only documents change [ci skip]
Run only checks for source code. Currently, our CIs do almost
nothing about the documents.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/baseruby.yml | 1 | ||||
-rw-r--r-- | .github/workflows/check_dependencies.yml | 1 | ||||
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 1 | ||||
-rw-r--r-- | .github/workflows/compilers.yml | 1 | ||||
-rw-r--r-- | .github/workflows/mingw.yml | 1 | ||||
-rw-r--r-- | .github/workflows/mjit.yml | 1 | ||||
-rw-r--r-- | .github/workflows/spec_guards.yml | 1 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 1 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 1 | ||||
-rw-r--r-- | .github/workflows/yjit-ubuntu.yml | 1 | ||||
-rw-r--r-- | .github/workflows/yjit_asm_tests.yml | 1 |
11 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml index 24b867c7fc..4e5e40d77c 100644 --- a/.github/workflows/baseruby.yml +++ b/.github/workflows/baseruby.yml @@ -20,6 +20,7 @@ jobs: 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 c68e49a464..35fd299554 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -22,6 +22,7 @@ jobs: 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 d22da8e481..486f4a3b5a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,6 +23,7 @@ jobs: # 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 2c2b6598f7..23529e5036 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -188,6 +188,7 @@ jobs: 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 c2db3df1ad..b93c653eb3 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -42,6 +42,7 @@ jobs: 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 0578104c7f..540c8e9c80 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -23,6 +23,7 @@ jobs: 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 79ef8a6cc0..27acbdad12 100644 --- a/.github/workflows/spec_guards.yml +++ b/.github/workflows/spec_guards.yml @@ -20,6 +20,7 @@ jobs: 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 e63e12ac0e..1c3f27eaef 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -36,6 +36,7 @@ jobs: 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 60f9b760ec..79f9dd3be2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,6 +28,7 @@ jobs: # 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 966f9fd1c7..9e19323cf8 100644 --- a/.github/workflows/yjit-ubuntu.yml +++ b/.github/workflows/yjit-ubuntu.yml @@ -43,6 +43,7 @@ jobs: 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 58f294f137..e79948217f 100644 --- a/.github/workflows/yjit_asm_tests.yml +++ b/.github/workflows/yjit_asm_tests.yml @@ -19,6 +19,7 @@ concurrency: jobs: test: runs-on: ubuntu-latest + if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} steps: - name: Install dependencies run: | |