Skip to content

Commit

Permalink
Add initial github actions file
Browse files Browse the repository at this point in the history
Signed-off-by: Basilio Vera <[email protected]>
  • Loading branch information
bvis committed Nov 23, 2020
1 parent 155f2bf commit 415b288
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 18 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
# - name: Cache go modules
# uses: actions/cache@v2
# with:
# path: |
# ~/go/pkg/mod # Module download cache
# ~/.cache/go-build # Build cache (Linux)
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
- name: Build
run: |
make install-protoc
make build
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.29
- name: Test
run: go test -v -race ./...
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ In order to start up correctly, it needs well defined environment variables:
| ------------------------------------ | ------------------------------------------------------------------ |
| RABBITMQ_URL | RabbitMQ url string |
| RABBITMQ_CA_PATH | Path to CA used to sign SSL cert for RabbitMQ server |
| RABBITMQ_TLS_CLIENT_CERT | Path to client certificate to connect to RabbitMQ server |
| RABBITMQ_TLS_CLIENT_KEY | Path to client key to connect to RabbitMQ server |
| RABBITMQ_DLX_NAME | RabbitMQ dead letters exchange name |
| RABBITMQ_DLX_QUEUE_NAME | RabbitMQ dead letters exchange's queue name |
| RABBITMQ_EXCHANGE_NAME | RabbitMQ messaging exchange name |
Expand Down Expand Up @@ -140,4 +142,4 @@ $ make test

## Acknowledgments

A special thank you to [Adrià Compte](https://dribbble.com/muniatu), the genius behind the homing pigeon logo.
A special thank you to [Adrià Compte](https://dribbble.com/muniatu), the genius behind the homing pigeon logo.

0 comments on commit 415b288

Please sign in to comment.