name: CI

on: [push]

jobs:
  test:
    strategy:
      matrix:
        ruby_version: [2.6.x, 2.7.x, 3.0.x]
      fail-fast: false
    runs-on: ubuntu-latest
    name: Test on Ruby ${{ matrix.ruby_version }}
    steps:
    - uses: actions/checkout@v2
    - name: Setup Ruby ${{ matrix.ruby_version }}
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby_version }}
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rake spec

name: CI

on: [push]

jobs:
  test:
    strategy:
      matrix:
        ruby_version: [2.6.x, 2.7.x, 3.0.x]
      fail-fast: false
    runs-on: ubuntu-latest
    name: Test on Ruby ${{ matrix.ruby_version }}
    steps:
    - uses: actions/checkout@v2
    - name: Setup Ruby ${{ matrix.ruby_version }}
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby_version }}
    - name: Install dependencies
      run: bundle install
    - name: Build gem
      run: gem build yajl-ruby.gemspec
    - name: Install gem
      run: gem install yajl-ruby
    - name: Run tests
      run: bundle exec rake spec

Add gem build and install steps to CI
Add gem build and install steps to CI

I think this is a Ruby 3.0 issue...locally I had to build and install
the gem for the spec/parsing/large_number_spec.rb tests to pass. They
were failing to find `yajl` in the `require` call. I reproduced this in
the console as well. I believe this has to do with changes to bundler in
Ruby 3.0 but I'm not 100% sure.
