diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90e9a18..8ee7c42 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,8 @@ name: build on: push: + branches: [main] + pull_request: schedule: - cron: '20 5 * * 1' workflow_dispatch: @@ -9,7 +11,7 @@ on: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false @@ -24,16 +26,21 @@ jobs: - "2.7" - "2.6" - "2.5" - - "2.4" - - "2.3" - - "jruby-9.4.3.0" - - "jruby-9.2.14.0" - - "truffleruby-23.0.0" - - "truffleruby-22.1.0" + - "truffleruby" rack-version: - "" # default Rack version + exclude: + # RubyGems on Ruby 2.5 ignores rack's required_ruby_version and + # installs a Rack that no longer runs on 2.5 — test it with a + # compatible Rack pinned below instead + - ruby-version: "2.5" + rack-version: "" + include: + - ruby-version: "2.5" + rack-version: "~>2.2" + - ruby-version: "2.7" rack-version: "~>1.2.0" - ruby-version: "2.7" @@ -61,7 +68,7 @@ jobs: rack-version: "~>3.0.0" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1