-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 948 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Write me a workflow that will lint the code with golangci-lint
name: lint
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
# Cloning outside of workspace is currently not possible, see https://github.com/actions/checkout/issues/197
# Therefore, we move later
- name: Cloning reva
uses: actions/checkout@v4
with:
repository: cs3org/reva
path: reva
- run: mv reva ../reva
- name: Go mod tidy
run: go mod tidy
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m
skip-pkg-cache: false
skip-build-cache: false