mirror of
https://github.com/retailcrm/api-client-go.git
synced 2025-04-02 20:56:17 +03:00
update CI
This commit is contained in:
parent
ce57e6fe9d
commit
0250d7183f
2 changed files with 5 additions and 6 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -20,20 +20,19 @@ jobs:
|
|||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up latest Go 1.x version
|
||||
- name: Set up Go 1.17
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '^1'
|
||||
go-version: '1.17'
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go mod tidy
|
||||
cp .env.dist .env
|
||||
- name: Lint code with golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.39
|
||||
version: v1.45.2
|
||||
only-new-issues: true
|
||||
skip-go-installation: true
|
||||
skip-pkg-cache: true
|
||||
tests:
|
||||
name: Tests
|
||||
|
|
|
@ -32,7 +32,7 @@ linters:
|
|||
- gocyclo
|
||||
- godot
|
||||
- goimports
|
||||
- golint
|
||||
- revive
|
||||
- gomnd
|
||||
- gosec
|
||||
- ifshort
|
||||
|
|
Loading…
Add table
Reference in a new issue