diff --git a/.github/workflows/rspec_rubocop.yml b/.github/workflows/rspec_rubocop.yml index 107aa7c..3d88b03 100644 --- a/.github/workflows/rspec_rubocop.yml +++ b/.github/workflows/rspec_rubocop.yml @@ -15,21 +15,37 @@ defaults: jobs: test: runs-on: ubuntu-latest + container: ubuntu:focal strategy: matrix: - include: # use bundler 2.3 for ruby versions < 2.6 (https://bundler.io/compatibility.html) + include: # https://bundler.io/compatibility.html - ruby-version: '2.6' - bundler-version: latest + bundler-version: '2.4' - ruby-version: '2.7' - bundler-version: latest + bundler-version: '2.4' - ruby-version: '3.0' bundler-version: latest - ruby-version: '3.1' bundler-version: latest + - ruby-version: '3.2' + bundler-version: latest steps: - uses: actions/checkout@v3 + - name: Install dependencies + run: | + apt-get update + apt-get install -y \ + automake \ + g++ \ + libtool \ + make \ + pkg-config \ + cmake \ + ccache \ + libssl-dev \ + libyaml-dev - name: Set up Ruby - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 + uses: ruby/setup-ruby@v1.143.0 with: ruby-version: ${{ matrix.ruby-version }} bundler: ${{ matrix.bundler-version }}