name: Test on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: ruby: [ '3.2', '3.1' ] os: [ 'ubuntu-latest', 'macOS-latest', 'windows-latest' ] name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: unit testing run: | gem install bundler rake bundle install --jobs 4 --retry 3 bundle exec rake test