Skip to content

Commit f649e37

Browse files
authored
Merge pull request #63 from cli/go-1.18-lint
Use Go 1.18 for linting
2 parents 853b6a5 + d345537 commit f649e37

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

.github/workflows/lint.yml

+6-24
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,27 @@
11
name: Lint
22
on: [push, pull_request]
3+
34
permissions:
45
contents: read
6+
57
jobs:
6-
go-mod:
7-
strategy:
8-
matrix:
9-
os: [ubuntu-latest]
10-
go: [1.16]
11-
runs-on: ${{ matrix.os }}
8+
lint:
9+
runs-on: ubuntu-latest
1210

1311
steps:
1412
- name: Set up Go
1513
uses: actions/setup-go@v3
1614
with:
17-
go-version: ${{ matrix.go }}
15+
go-version: "1.18"
1816

1917
- name: Checkout repository
2018
uses: actions/checkout@v3
2119

22-
- name: Check go mod
20+
- name: Check dependencies
2321
run: |
2422
go mod tidy
2523
git diff --exit-code go.mod
2624
27-
lint:
28-
strategy:
29-
matrix:
30-
os: [ubuntu-latest]
31-
go: [1.16]
32-
runs-on: ${{ matrix.os }}
33-
34-
steps:
35-
- name: Set up Go
36-
uses: actions/setup-go@v3
37-
with:
38-
go-version: ${{ matrix.go }}
39-
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
42-
4325
- name: Lint
4426
uses: golangci/[email protected]
4527
with:

.github/workflows/test.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: Test
22
on: [push, pull_request]
3+
34
permissions:
45
contents: read
6+
57
jobs:
68
test:
79
strategy:
810
fail-fast: false
911
matrix:
1012
os: [ubuntu-latest, windows-latest, macos-latest]
11-
go: [1.16]
13+
go: ["1.18", "1.19"]
14+
1215
runs-on: ${{ matrix.os }}
1316

1417
steps:

0 commit comments

Comments
 (0)