From df86b7fae1fa899f428a8cddf7ba17648a37d447 Mon Sep 17 00:00:00 2001 From: Adriaan Knapen Date: Mon, 20 Apr 2020 21:41:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20code=20linting=20to=20the?= =?UTF-8?q?=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/continuous_integration.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous_integration.yaml b/.github/workflows/continuous_integration.yaml index f894a59..03c30e3 100644 --- a/.github/workflows/continuous_integration.yaml +++ b/.github/workflows/continuous_integration.yaml @@ -6,7 +6,7 @@ on: jobs: build: - name: Build + name: Build and Test runs-on: ubuntu-latest steps: @@ -38,3 +38,13 @@ jobs: - name: Run Tests run: POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres go test -v . + + linting: + name: Linting + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Linting + run: docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.24.0 golangci-lint run -v