Merge pull request #39 from getkalido/fix/cve-2023-44487-http-2-reque… #126
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: Tests | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
branches: | |
- develop | |
- topic-exchange | |
- master | |
push: | |
branches: | |
- develop | |
- topic-exchange | |
- master | |
jobs: | |
build: | |
services: | |
rabbitmq: | |
image: rabbitmq:3.7-alpine | |
ports: | |
- 5672:5672 | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fix up git URLs | |
run: echo -e '[url "https://github.com/"]\n insteadOf = "[email protected]:"' >> ~/.gitconfig | |
- name: Check out code | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 15 | |
submodules: true | |
token: ${{ secrets.BLOB }} | |
- name: Set up Go | |
id: go | |
timeout-minutes: 10 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
cache: true | |
- name: Test | |
run: | | |
export PATH=$PATH:/tmp/protoc/bin:/home/runner/go/bin | |
export GO111MODULE=on | |
export GOPROXY=https://proxy.golang.org | |
go get github.com/golang/protobuf/[email protected] | |
go get github.com/golang/mock/[email protected] | |
go get github.com/getkalido/gener8 | |
go get github.com/onsi/[email protected] | |
go get github.com/kisielk/[email protected] | |
go get github.com/onsi/ginkgo/[email protected] | |
go install github.com/onsi/ginkgo/ginkgo | |
cd test && ginkgo |