ci: install libadbc-driver-sqlite-dev for test #12
This file contains hidden or 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: | |
- '**' | |
- '!dependabot/**' | |
tags: | |
- '**' | |
pull_request: | |
jobs: | |
test: | |
name: "Ruby ${{ matrix.ruby-version }}: ${{ matrix.runs-on }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: | |
- "3.2" | |
- "3.3" | |
- "3.4" | |
runs-on: | |
# - macos-latest | |
- ubuntu-latest | |
# - windows-latest | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
# We can't use "bundler-cache: true" with ruby/setup-ruby | |
# because it doesn't cache dependencies installed by | |
# rubygems-requirements-system automatically. | |
- name: Install dependencies | |
run: | | |
MAKEFLAGS="-j$(nproc)" bundle install --jobs=$(nproc) | |
- name: Install test dependencies | |
run: | | |
sudo apt install -y -V libadbc-driver-sqlite-dev | |
- name: Test | |
run: | | |
bundle exec rake |