Skip to content

fix: do not trigger build workflows after merging to main or for release PRs #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Continuous Integration

on:
push:
branches: [main]

pull_request:
branches: [main]

Expand All @@ -14,27 +11,22 @@ env:
# results from JRuby are complete.
JRUBY_OPTS: --debug

# Supported platforms / Ruby versions:
# - Ubuntu: MRI (3.1, 3.2, 3.3), TruffleRuby (24), JRuby (9.4)
# - Windows: MRI (3.1), JRuby (9.4)

jobs:
build:
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}

if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--'))

runs-on: ${{ matrix.operating-system }}
continue-on-error: true

strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "3.3", "jruby-9.4", "truffleruby-24"]
ruby: ["3.1", "3.4"]
operating-system: [ubuntu-latest]
include:
- ruby: "3.1"
operating-system: windows-latest
- ruby: "jruby-9.4"
operating-system: windows-latest

env:
JRUBY_OPTS: --debug
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/enforce_conventional_commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
commit-lint:
name: Verify Conventional Commits

if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--'))

runs-on: ubuntu-latest

steps:
Expand Down
32 changes: 21 additions & 11 deletions .github/workflows/experimental_ruby_builds.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,54 @@
name: Experimental Ruby Builds

on:
push:
branches: [main]

workflow_dispatch:

env:
# SimpleCov suggests setting the JRuby --debug flag to ensure that coverage
# results from JRuby are complete.
JRUBY_OPTS: --debug

# Experimental platforms / Ruby versions:
# - Ubuntu: MRI (head), TruffleRuby (head), JRuby (head)
# - Windows: MRI (head), JRuby (head)

jobs:
build:
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}

runs-on: ${{ matrix.operating-system }}
continue-on-error: true

env:
FAIL_ON_LOW_COVERAGE: ${{ matrix.fail_on_low_coverage }}

strategy:
fail-fast: false
matrix:
include:
- ruby: "3.1"
operating-system: windows-latest
fail_on_low_coverage: "false"
- ruby: head
operating-system: ubuntu-latest
fail_on_low_coverage: "true"
- ruby: head
operating-system: windows-latest
- ruby: truffleruby-head
fail_on_low_coverage: "false"
- ruby: "jruby-9.4"
operating-system: ubuntu-latest
fail_on_low_coverage: "false"
- ruby: "jruby-9.4"
operating-system: windows-latest
fail_on_low_coverage: "false"
- ruby: jruby-head
operating-system: ubuntu-latest
fail_on_low_coverage: "false"
- ruby: jruby-head
operating-system: windows-latest

env:
JRUBY_OPTS: --debug
fail_on_low_coverage: "false"
- ruby: "truffleruby-24"
operating-system: ubuntu-latest
fail_on_low_coverage: "false"
- ruby: truffleruby-head
operating-system: ubuntu-latest
fail_on_low_coverage: "false"

steps:
- name: Checkout
Expand Down