Skip to content

Commit

Permalink
workflow: Adding lint before unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Delyan Raychev <[email protected]>
  • Loading branch information
draychev committed May 11, 2022
1 parent 32e2109 commit 021acfd
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/unit_test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unit-test
name: lint-and-unit-test

on:
push:
Expand All @@ -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
Expand Down

0 comments on commit 021acfd

Please sign in to comment.