ci: don't use Bundler when we install Rroonga as a gem #135
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 | |
- pull_request | |
jobs: | |
test: | |
name: ${{ matrix.ruby-version }} x ${{ matrix.runs-on }} | |
runs-on: ${{ matrix.runs-on }} | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
ruby-version: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
- "3.4" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Update MSYS2 package database | |
if: | | |
matrix.runs-on == 'windows-latest' | |
run: | | |
ridk exec pacman ` | |
--noconfirm ` | |
--refresh ` | |
--sync | |
- name: Install dependencies | |
run: | | |
bundle install | |
- name: Build gem | |
run: | | |
bundle exec rake build | |
- name: Install as gem | |
run: | | |
gem install pkg/*.gem | |
- name: Install additional Groonga pakcages to run tests | |
if: | | |
matrix.runs-on == 'ubuntu-latest' | |
run: | | |
sudo -H apt install -y \ | |
groonga \ | |
groonga-tokenizer-mecab | |
- name: Test | |
env: | |
NO_MAKE: "yes" | |
run: | | |
ruby -run -e mkdir -- tmp | |
ruby -run -e cp -- -p -r test tmp | |
cd tmp | |
ruby test/run-test.rb |