From 24f6b1d54db7e0203616d28515559e25f8d1b47e Mon Sep 17 00:00:00 2001 From: Delyan Raychev Date: Wed, 11 May 2022 13:32:29 -0700 Subject: [PATCH] workflow: Adding lint before unit test Signed-off-by: Delyan Raychev --- .github/workflows/unit_test.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_test.yaml b/.github/workflows/unit_test.yaml index ccfbc7e..54f0521 100644 --- a/.github/workflows/unit_test.yaml +++ b/.github/workflows/unit_test.yaml @@ -1,4 +1,4 @@ -name: unit-test +name: lint-and-unit-test on: push: @@ -7,6 +7,23 @@ on: branches: [ master ] jobs: + + lint: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Go 1.15 + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + skip-pkg-cache: true + unit-test: name: unit-test runs-on: ubuntu-latest