name: CI on: [ push, pull_request ] jobs: tests: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: - ubuntu-latest - macos-latest ruby: - 3.0 - 3.1 - 3.2 - jruby - truffleruby name: OS ${{ matrix.os }} / Ruby ${{ matrix.ruby }} steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - if: matrix.os == 'ubuntu-latest' name: Install external dependencies run: sudo apt-get install -y xz-utils unzip p7zip - if: matrix.os == 'macos-latest' name: Install external dependencies run: brew install xz unzip p7zip - name: Install Ruby dependencies run: bundle install --jobs 4 --retry 3 - name: Run tests run: bundle exec rake test