-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.05 KB
/
main.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
name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} + Typesense ${{ matrix.typesense }}
strategy:
matrix:
ruby:
- '2.7.8'
- '3.0.6'
- '3.1.4'
- '3.2.2'
typesense:
- '0.24.1'
- '0.23.1'
- '0.22.1'
services:
typesense:
image: typesense/typesense:${{ matrix.typesense }}
ports:
- 8108:8108
env:
TYPESENSE_API_KEY: xyz
TYPESENSE_DATA_DIR: /data
volumes:
- typesense_data:/data
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the test suite
run: bundle exec rake spec
- name: Publish code coverage
uses: paambaati/[email protected]
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}