workflows: move linter to tests from builds

This commit is contained in:
Roman Khimov 2021-04-30 19:09:41 +03:00
parent f05a6eda7d
commit 25d273f88e
2 changed files with 12 additions and 12 deletions

View file

@ -1,4 +1,4 @@
name: Builds and lints name: Builds
on: on:
pull_request: pull_request:
@ -10,17 +10,6 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
build_cli: build_cli:
name: Build CLI name: Build CLI
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04

View file

@ -10,6 +10,17 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
cover: cover:
name: Coverage name: Coverage
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04