Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
ci: add linters to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dekobon committed Oct 16, 2020
1 parent 508051f commit 76fac79
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Linters

on: [push, pull_request]

defaults:
run:
shell: bash

env:
GOLANGCI_VERSION: 1.31
GOLANGCI_TIMEOUT: 10m0s

jobs:
validate-commits:
runs-on: ubuntu-latest
steps:
- name: Check git commit messages (Commitsar Action)
uses: aevea/[email protected]

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: golangci lint code (app)
uses: golangci/golangci-lint-action@v2
continue-on-error: true
with:
version: 'v${{ env.GOLANGCI_VERSION }}'
args: --config .golangci.toml --color always --path-prefix app/ --timeout ${{ env.GOLANGCI_TIMEOUT }}
- name: golangci lint code (lib)
uses: golangci/golangci-lint-action@v2
continue-on-error: true
with:
version: 'v${{ env.GOLANGCI_VERSION }}'
args: --config .golangci.toml --color always --path-prefix lib/ --timeout ${{ env.GOLANGCI_TIMEOUT }}

0 comments on commit 76fac79

Please sign in to comment.