fix nil error when rate limiter is not defined (#143) #406
This file contains 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: Build and Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.3 | |
- name: Set up protoc | |
run: | | |
wget https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip | |
unzip protoc-25.1-linux-x86_64.zip | |
sudo mv bin/protoc /usr/local/bin/protoc | |
sudo mv include/* /usr/local/include/ | |
- name: Install protoc-gen-go | |
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 | |
- name: Generated protofiles are up to date | |
run: | | |
make generate-protos | |
git diff --exit-code | |
- name: No formatting changes | |
run: | | |
make format | |
git diff --exit-code | |
- name: Install ZMQ | |
run: sudo apt update -y && sudo apt upgrade -y && sudo apt install libsodium-dev libzmq3-dev | |
- name: Test | |
run: make test | |
- name: Integration Test | |
run: make integration |