Skip to content

Commit 818284a

Browse files
authored
refactor: update workflow and dependency (#21)
Signed-off-by: ZhangJian He <[email protected]>
1 parent 68f9bc4 commit 818284a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+68
-713
lines changed

.github/workflows/commit_lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: commit lint
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
commitlint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: wagoid/commitlint-github-action@v5

.github/workflows/go_ci_lint.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
#
2-
# Licensed to the Apache Software Foundation (ASF) under one
3-
# or more contributor license agreements. See the NOTICE file
4-
# distributed with this work for additional information
5-
# regarding copyright ownership. The ASF licenses this file
6-
# to you under the Apache License, Version 2.0 (the
7-
# "License"); you may not use this file except in compliance
8-
# with the License. You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing,
13-
# software distributed under the License is distributed on an
14-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
# KIND, either express or implied. See the License for the
16-
# specific language governing permissions and limitations
17-
# under the License.
18-
#
191
name: go ci Lint
202
on:
213
push:
@@ -29,12 +11,12 @@ jobs:
2911
name: lint
3012
runs-on: ubuntu-latest
3113
steps:
32-
- uses: actions/checkout@v3
33-
- uses: actions/setup-go@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-go@v4
3416
with:
35-
go-version: 1.19
17+
go-version: '1.20'
3618
- name: golangci-lint
37-
uses: golangci/golangci-lint-action@v3
19+
uses: golangci/golangci-lint-action@v6
3820
with:
3921
version: latest
4022
args: --timeout 3m0s

.github/workflows/go_ci_test.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/go_mod_check.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
#
2-
# Licensed to the Apache Software Foundation (ASF) under one
3-
# or more contributor license agreements. See the NOTICE file
4-
# distributed with this work for additional information
5-
# regarding copyright ownership. The ASF licenses this file
6-
# to you under the Apache License, Version 2.0 (the
7-
# "License"); you may not use this file except in compliance
8-
# with the License. You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing,
13-
# software distributed under the License is distributed on an
14-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
# KIND, either express or implied. See the License for the
16-
# specific language governing permissions and limitations
17-
# under the License.
18-
#
19-
name: Go mod check
1+
name: go mod check
202

213
on:
224
push:
@@ -27,11 +9,13 @@ on:
279
- main
2810

2911
jobs:
30-
go-mod-check:
12+
go_mod_check:
3113
runs-on: ubuntu-latest
3214
steps:
33-
- name: Check out code
34-
uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v4
17+
with:
18+
go-version: '1.20'
3519
- name: Run Go Mod Check Action
3620
uses: Shoothzj/go-mod-check-action@main
3721
with:

.github/workflows/go_unit_test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: go unit test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
go_unit_test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v4
17+
with:
18+
go-version: '1.20'
19+
- name: Run coverage
20+
run: go test ./... -coverpkg=./opengemini/... -race -coverprofile=coverage.out -covermode=atomic

.github/workflows/license_check.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/line_lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: line lint
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
line_lint:
8+
name: line lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: linelint
13+
uses: fernandrone/linelint@master

.github/workflows/typo_check.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: typo check
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
typo_check:
8+
name: typo check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Check typos
13+
uses: crate-ci/typos@master

.licenserc.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

padmin/backlog_interface.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one
2-
// or more contributor license agreements. See the NOTICE file
3-
// distributed with this work for additional information
4-
// regarding copyright ownership. The ASF licenses this file
5-
// to you under the Apache License, Version 2.0 (the
6-
// "License"); you may not use this file except in compliance
7-
// with the License. You may obtain a copy of the License at
8-
//
9-
// http://www.apache.org/licenses/LICENSE-2.0
10-
//
11-
// Unless required by applicable law or agreed to in writing,
12-
// software distributed under the License is distributed on an
13-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
// KIND, either express or implied. See the License for the
15-
// specific language governing permissions and limitations
16-
// under the License.
17-
181
package padmin
192

203
import "time"

0 commit comments

Comments
 (0)