.github/workflows/test.yml in prettyprint-0.1.1 vs .github/workflows/test.yml in prettyprint-0.2.0
- old
+ new
@@ -5,23 +5,29 @@
pull_request:
schedule:
- cron: '15 3 * * *'
jobs:
- build:
- name: build (${{ matrix.ruby }} / ${{ matrix.os }})
+ ruby-versions:
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
+ with:
+ engine: cruby
+ min_version: 2.5
+
+ test:
+ needs: ruby-versions
strategy:
matrix:
- ruby: [ head, '3.0', '2.7', '2.6', '2.5' ]
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest, windows-latest ]
exclude:
- { os: windows-latest , ruby: head }
include:
- { os: windows-latest , ruby: mingw }
- { os: windows-latest , ruby: mswin }
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies