CI: Introduce ruby_versions.yml to add supported Ruby versions automatically #89
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| jobs: | |
| ruby-versions: | |
| uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
| with: | |
| engine: cruby | |
| min_version: 2.7 | |
| test: | |
| needs: ruby-versions | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.ruby == 'head' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
| os: | |
| - windows-latest | |
| name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Install | |
| run: | | |
| ruby --version | |
| gem --version | |
| ridk exec bundle install --jobs 4 --retry 3 | |
| - name: Unit Test | |
| run: | | |
| bundle exec rake test |