Enable golangci-lint (attempt 2) (#23517)

This time we are just using the Makefile command
to see if that makes a difference
```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2023-05-30 15:16:42 +05:30
коммит произвёл GitHub
родитель 20ec920b71
Коммит c7295b01e5
3 изменённых файлов: 24 добавлений и 3 удалений

21
.github/workflows/server-ci-template.yml поставляемый
Просмотреть файл

@@ -51,6 +51,27 @@ jobs:
run: make modules-tidy
- name: Check modules
run: if [[ -n $(git status --porcelain) ]]; then echo "Please tidy up the Go modules using make modules-tidy"; git diff; exit 1; fi
golangci:
name: golangci-lint
runs-on: ubuntu-22.04
defaults:
run:
working-directory: server
steps:
- name: Checkout mattermost-server
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: ${{ env.go-version }}
cache-dependency-path: |
server/go.sum
server/public/go.sum
- name: Setup go.work
run: make setup-go-work
- name: Run golangci
run: make golangci-lint
check-gen-serialized:
name: Check serialization methods for hot structs
runs-on: ubuntu-22.04