fix(ci): implement stricter linting settings

This commit is contained in:
jguer committed 2020-05-02 16:17:20 +02:00
1 parent e7b1fe4d53
commit 9fccdcb30f
29 files changed
+443 -415

No files matched your search

+9 -2
View File
@@ -13,13 +13,20 @@ jobs:
name: Lint and test yay
# This job runs on Linux
runs-on: ubuntu-latest
container: samip537/archlinux:devel
container:
image: samip537/archlinux:devel
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Build and tests
run: |
pacman -Sy --noconfirm go
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.25.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.26.0
./bin/golangci-lint run ./...
make test