Multiple Ruby version tests #160
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: Multiple Ruby version tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| jobs: | |
| ruby-versions: | |
| uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
| with: | |
| engine: cruby | |
| min_version: 2.5 | |
| build: | |
| needs: ruby-versions | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
| exclude: | |
| - ruby: head | |
| os: | |
| - ubuntu-latest | |
| name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt -V install libcap-ng-dev | |
| - uses: ruby/setup-ruby@0dafeac902942906541bc140009cdbf32665b601 # v1.315.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: unit testing | |
| env: | |
| CI: true | |
| run: | | |
| bundle install --jobs 4 --retry 3 | |
| bundle exec rake |