diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index e5652cd..454bb30 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -1,9 +1,6 @@ name: Continuous Integration on: - push: - branches: [main] - pull_request: branches: [main] @@ -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 diff --git a/.github/workflows/enforce_conventional_commits.yml b/.github/workflows/enforce_conventional_commits.yml index a3e1a5d..8e85bdb 100644 --- a/.github/workflows/enforce_conventional_commits.yml +++ b/.github/workflows/enforce_conventional_commits.yml @@ -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: diff --git a/.github/workflows/experimental_ruby_builds.yml b/.github/workflows/experimental_ruby_builds.yml index b8f2a37..d3ed8ef 100644 --- a/.github/workflows/experimental_ruby_builds.yml +++ b/.github/workflows/experimental_ruby_builds.yml @@ -1,9 +1,6 @@ name: Experimental Ruby Builds on: - push: - branches: [main] - workflow_dispatch: env: @@ -11,10 +8,6 @@ env: # 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 }} @@ -22,23 +15,40 @@ jobs: 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