-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 882 Bytes
/
tests.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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-latest", "macos-latest" ]
ruby: [ "3.0", "3.1", "3.2" ]
steps:
- name: Install protobuf
if: matrix.os == 'ubuntu-latest'
run: sudo apt install -y protobuf-compiler
- name: Install protobuf
if: matrix.os == 'macos-latest'
run: brew install protobuf
- uses: actions/checkout@v3
- uses: oxidize-rb/actions/setup-ruby-and-rust@main
with:
rubygems: latest
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cargo-cache: true
cache-version: v1
- name: Run ruby tests
run: bundle exec rake
- name: Lint rust
run: |
cargo clippy
cargo fmt --check