-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (45 loc) · 1.27 KB
/
build.yaml
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
name: "build"
on:
push:
branches:
- "!dependabot/*"
- "*"
pull_request:
branches:
- "*"
jobs:
test:
name: "Test Clients"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.2.2"
- uses: "authzed/action-spicedb@v1"
- name: "Install dependencies"
run: "bundle install"
- name: "Run rspec"
run: "bundle exec rspec"
protobuf:
name: "Generate Protobufs"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.2.2"
- uses: "arduino/setup-protoc@v2"
with:
version: "23.3"
- name: "Install Homebrew & gRPC"
run: |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/runner/.bash_profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install grpc
which grpc_ruby_plugin
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
- uses: "authzed/actions/buf-generate@main"
with:
version: "v1.27.2"