aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorNicolas Peugnet <n.peugnet@free.fr>2021-09-13 11:32:53 +0200
committerGitHub <noreply@github.com>2021-09-13 11:32:53 +0200
commite8b48ddece267bfde7c0565a8ec39fd5b53cee72 (patch)
tree92cbb6d95e126d0e89a96e86f8f2f672141d64c3 /.github/workflows/build.yml
parent4168e8c6ed41fa4cb53dfded67caed79a82e8789 (diff)
downloaddna-backup-e8b48ddece267bfde7c0565a8ec39fd5b53cee72.tar.gz
dna-backup-e8b48ddece267bfde7c0565a8ec39fd5b53cee72.zip
Add golangci job to build workflow (#2)
* Update build.yml * disable golang-ci for tests * fix args syntax * make errchek only a warning * report only new lint issues
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f09e7bf..4276554 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,8 +7,16 @@ on:
branches: [ main ]
jobs:
-
- build:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: golangci-lint
+ uses: golangci/golangci-lint-action@v2
+ with:
+ version: v1.29
+ only-new-issues: true
+ test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2