Skip to content

Commit

Permalink
[DOC] Skip tests if only documents change [ci skip]
Browse files Browse the repository at this point in the history
Run only checks for source code.  Currently, our CIs do almost
nothing about the documents.
  • Loading branch information
nobu committed Dec 16, 2021
1 parent 32ee6f8 commit 5bf0060
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Expand Up @@ -11,6 +11,7 @@ clone_depth: 10
platform:
- x64
skip_commits:
message: /^\[DOC\]/
files:
- doc/*
- '**/*.md'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/baseruby.yml
Expand Up @@ -20,6 +20,7 @@ jobs:
baseruby:
name: BASERUBY
runs-on: ubuntu-20.04
if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
strategy:
matrix:
ruby:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check_dependencies.yml
Expand Up @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/compilers.yml
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mingw.yml
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mjit.yml
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/spec_guards.yml
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu.yml
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Expand Up @@ -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}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/yjit-ubuntu.yml
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/yjit_asm_tests.yml
Expand Up @@ -19,6 +19,7 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }}
steps:
- name: Install dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -13,6 +13,8 @@ language: c

os: linux

if: commit_message !~ /^\[DOC\]/

dist: focal

git:
Expand Down

0 comments on commit 5bf0060

Please sign in to comment.