Fix using rack v3 #209
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '5.29.3' | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.16 | |
- run: go install google.golang.org/protobuf/cmd/[email protected] | |
- 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 |