CI: Refine CI settings #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest'] | |
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ] | |
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install libsnappy-dev libzstd-dev | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: unit testing | |
env: | |
CI: true | |
run: | | |
gem install bundler rake | |
bundle install --jobs 4 --retry 3 | |
bundle exec rake test |