Skip to content

Commit

Permalink
chore(build/lint): move linter into anthor job
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdidierlaurent committed Feb 6, 2020
1 parent 7f95988 commit c8ba0c4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -32,13 +32,6 @@ jobs:
go get -u gotest.tools/gotestsum
make install
- name: lint
uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--config=.golangci.yml"
tool_name: report - lint - core

- name: tests
run: |
# https://github.com/actions/setup-go/issues/14
Expand All @@ -51,6 +44,17 @@ jobs:
token: ${{ secrets.codecov_token }}
yml: .github/.codecov.yml
flags: core
lint-core:
name: lint / core
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--config=.golangci.yml"
tool_name: report - lint - core

test-ui:
name: test / ui
Expand Down Expand Up @@ -80,7 +84,7 @@ jobs:

build:
name: build
needs: [test-core, test-ui]
needs: [test-core, lint-core, test-ui]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
Expand Down

0 comments on commit c8ba0c4

Please sign in to comment.