diff --git a/.github/workflows/unit_test.yaml b/.github/workflows/unit_test.yaml index ccfbc7e..e9bcd06 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,25 @@ 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: go build deps + run: make embed-files-test + - 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