Skip to content

Commit ea79bd6

Browse files
committed
Disable schedule jobs for forks
1 parent f4439b4 commit ea79bd6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ on:
88

99
jobs:
1010
ruby-versions:
11+
if: github.repository == 'ruby/irb'
1112
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
1213
with:
1314
engine: cruby
1415
min_version: 2.7
1516
lint:
17+
if: github.repository == 'ruby/irb'
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v4
@@ -24,6 +26,7 @@ jobs:
2426
- name: Run rubocop
2527
run: bundle exec rubocop
2628
irb:
29+
if: github.repository == 'ruby/irb'
2730
needs: ruby-versions
2831
name: rake test ${{ matrix.ruby }} ${{ matrix.with_latest_reline && '(latest reline)' || '' }}
2932
strategy:
@@ -49,6 +52,7 @@ jobs:
4952
- name: Run tests in isolation
5053
run: bundle exec rake test_in_isolation
5154
debug-test:
55+
if: github.repository == 'ruby/irb'
5256
name: Debug compatibility test
5357
runs-on: ubuntu-latest
5458
timeout-minutes: 30
@@ -72,6 +76,7 @@ jobs:
7276
bundle install
7377
bundle exec rake
7478
vterm-yamatanooroti:
79+
if: github.repository == 'ruby/irb'
7580
needs: ruby-versions
7681
name: >-
7782
vterm-yamatanooroti ${{ matrix.ruby }} ${{ matrix.with_latest_reline && '(latest reline)' || '' }}

0 commit comments

Comments
 (0)