Merge pull request #199 from ruby/dependabot/github_actions/actions/c… #538
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| ruby-versions: | |
| uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
| with: | |
| min_version: 2.5 | |
| build: | |
| needs: ruby-versions | |
| name: build (${{ matrix.ruby }} / ${{ matrix.os }}) | |
| strategy: | |
| matrix: | |
| ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
| os: [ ubuntu-latest, macos-latest ] | |
| exclude: | |
| - ruby: 2.5 | |
| os: macos-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - run: bundle install --jobs 4 --retry 3 | |
| - name: Run test | |
| run: rake test |