-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 838 Bytes
/
ci.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
name: ci
on:
push:
branches: [main]
paths-ignore: ['**.md', '.rubocop.yml']
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths-ignore: ['**.md', '.rubocop.yml']
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby-version: ['2.6', '2.7']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install protoc
uses: arduino/setup-protoc@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: bundle exec rake test