Skip to content

Commit

Permalink
Separate out golangci-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed May 21, 2020
1 parent 801b2f0 commit 57557f1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/chezmoi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
run: go run . --version
- name: Test
run: go test -race ./...
- name: Lint
if: matrix.os == 'ubuntu-latest'
run: make lint
- name: Check formatting
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
golangci-lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v1
with:
version: v1.26

0 comments on commit 57557f1

Please sign in to comment.