-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (40 loc) · 1.02 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
name: ci
on:
push:
branches: [main]
paths-ignore: ['**.md', '.rubocop.yml']
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths-ignore: ['**.md', '.rubocop.yml']
defaults:
run:
shell: bash
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby-version: ['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@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and install
shell: bash
run: |
gem build *.gemspec
gem install *.gem
proto-convert --help
- name: Run tests [${{ matrix.os }}]
shell: bash
run: cd test && ./run_tests.sh