-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (81 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Test & Lint
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
protoc:
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v1
with:
version: '3.x'
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ^1.16
- run: go install google.golang.org/protobuf/cmd/protoc-gen-go
- run: protoc -I=. --go_out=pb --go_opt=paths=source_relative --ruby_out=ruby/lib/umbra/pb ./umbra.proto
- run: git add . && git diff --staged --exit-code
golang:
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
name: Go
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
- name: Checkout
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
go get -u golang.org/x/lint/golint
- name: Build
run: |
golint -set_exit_status ./...
go build -v .
go test -v ./...
ruby:
defaults:
run:
working-directory: ./ruby
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0' ]
experimental: [ false ]
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: gem install bundler:2.1.4
- run: bundle install
- run: bundle exec rake standard
- run: bundle exec rspec --format progress