Merge pull request #701 from ruby/dependabot/github_actions/rubygems/… #917
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, pull_request] | |
| permissions: # added using https://github.com/step-security/secure-workflows | |
| contents: read | |
| jobs: | |
| ruby-versions: | |
| uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
| with: | |
| min_version: 2.3 | |
| engine: cruby | |
| versions: '["truffleruby", "jruby"]' | |
| test: | |
| needs: ruby-versions | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] | |
| ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
| exclude: | |
| - os: macos-latest | |
| ruby: 2.3 | |
| - os: macos-latest | |
| ruby: 2.4 | |
| - os: macos-latest | |
| ruby: 2.5 | |
| - os: windows-latest | |
| ruby: 2.3 | |
| - os: windows-latest | |
| ruby: truffleruby | |
| - os: windows-latest | |
| ruby: jruby | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ruby/setup-ruby@6ca151fd1bfcfd6fe0c4eb6837eb0584d0134a0c # v1.290.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Install dependencies | |
| run: gem install test-unit | |
| - name: Run test | |
| run: ruby -Ilib exe/rake |