Skip to content

api: Improve logging and fix successful proxy execution check #504

api: Improve logging and fix successful proxy execution check

api: Improve logging and fix successful proxy execution check #504

Workflow file for this run

# lint workflow runs golangci-lint, re generate swagger api and checks for any diffs
on:
push:
branches: [main]
pull_request:
name: Checks
jobs:
lint:
name: lint check
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GOPATH: ${{ github.workspace }}
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check out code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- uses: actions/[email protected]
with:
path: ${{ env.GOPATH }}/pkg/mod
key: ${{ runner.os }}-go-${{ github.job }}
- name: Install dependencies
run: |
make install-deps
- name: Lint check
run: |
make lint-check
- name: Swagger check
run: |
make gen-swagger
echo "Checking that swagger gen didn't result in a modified git tree" && git diff --exit-code ./http