Skip to content

Commit 2f0ae39

Browse files
dependabot[bot]vtolstov
authored andcommitted
Bump golangci/golangci-lint-action from 3.4.0 to 8.0.0 (#97)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.4.0 to 8.0.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v3.4.0...v8.0.0) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 28257ea commit 2f0ae39

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- v3
7+
jobs:
8+
test:
9+
name: test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: setup
13+
uses: actions/setup-go@v3
14+
with:
15+
go-version: 1.17
16+
- name: checkout
17+
uses: actions/checkout@v3
18+
- name: cache
19+
uses: actions/cache@v3
20+
with:
21+
path: ~/go/pkg/mod
22+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23+
restore-keys: ${{ runner.os }}-go-
24+
- name: deps
25+
run: go get -v -t -d ./...
26+
- name: test
27+
env:
28+
INTEGRATION_TESTS: yes
29+
run: go test -mod readonly -v ./...
30+
lint:
31+
name: lint
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: checkout
35+
uses: actions/checkout@v3
36+
- name: lint
37+
uses: golangci/golangci-lint-action@v8.0.0
38+
continue-on-error: true
39+
with:
40+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
41+
version: v1.30
42+
# Optional: working directory, useful for monorepos
43+
# working-directory: somedir
44+
# Optional: golangci-lint command line arguments.
45+
# args: --issues-exit-code=0
46+
# Optional: show only new issues if it's a pull request. The default value is `false`.
47+
# only-new-issues: true

.github/workflows/pr.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: prbuild
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- v3
7+
jobs:
8+
test:
9+
name: test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: setup
13+
uses: actions/setup-go@v3
14+
with:
15+
go-version: 1.17
16+
- name: checkout
17+
uses: actions/checkout@v3
18+
- name: cache
19+
uses: actions/cache@v3
20+
with:
21+
path: ~/go/pkg/mod
22+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23+
restore-keys: ${{ runner.os }}-go-
24+
- name: deps
25+
run: go get -v -t -d ./...
26+
- name: test
27+
env:
28+
INTEGRATION_TESTS: yes
29+
run: go test -mod readonly -v ./...
30+
lint:
31+
name: lint
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: checkout
35+
uses: actions/checkout@v3
36+
- name: lint
37+
uses: golangci/golangci-lint-action@v8.0.0
38+
continue-on-error: true
39+
with:
40+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
41+
version: v1.30
42+
# Optional: working directory, useful for monorepos
43+
# working-directory: somedir
44+
# Optional: golangci-lint command line arguments.
45+
# args: --issues-exit-code=0
46+
# Optional: show only new issues if it's a pull request. The default value is `false`.
47+
# only-new-issues: true

0 commit comments

Comments
 (0)