-
Notifications
You must be signed in to change notification settings - Fork 26
58 lines (58 loc) · 1.41 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: Install dependencies to build gems
run: |
gem install packnga yard
- name: Build gem
run: |
rake build
- name: Update MSYS2 package database
if: |
matrix.runs-on == 'windows-latest'
run: |
ridk exec pacman `
--noconfirm `
--refresh `
--sync
- name: Install gem
run: |
gem install --verbose 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
run: |
ruby -run -e mkdir -- tmp
ruby -run -e cp -- -p -r test tmp
cd tmp
ruby test/run-test.rb
env:
NO_MAKE: "yes"