Skip to content

Commit 653b9e6

Browse files
authored
Add golangci-lint (#310)
* Create .golangci.yml * Create lint.yml * Delete lint.yml * Update test.yml * Restore schedule
1 parent 5ce1774 commit 653b9e6

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
name: Test
22
on:
33
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
48
pull_request:
59
schedule:
610
- cron: '0 9 * * 1' # M H d m w (Mondays at 9:00)
711
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: golangci/golangci-lint-action@v2
817
test:
9-
if: startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request' || github.event_name == 'schedule' || github.repository_owner != 'iterative'
1018
runs-on: ubuntu-latest
1119
steps:
1220
- uses: actions/setup-go@v2

.golangci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
run:
2+
timeout: 10m
3+
skip-dirs:
4+
- iterative
5+
- cml
6+
output:
7+
format: github-actions
8+
severity:
9+
default-severity: error

0 commit comments

Comments
 (0)