Skip to content

Update ci.yml

Update ci.yml #39

Workflow file for this run

name: CI
on: [push, pull_request]
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@v4
- name: Setup Ruby ${{ matrix.ruby_version }}
uses: ruby/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