Skip to content

Commit 72179c7

Browse files
authored
ci: update settings (#109)
1 parent 4a03242 commit 72179c7

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

.github/workflows/go.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Run golangci-lint
27-
uses: golangci/golangci-lint-action@v2
27+
uses: golangci/golangci-lint-action@v3
2828
with:
2929
version: latest
3030
args: --timeout=30m
@@ -33,7 +33,7 @@ jobs:
3333
name: Test
3434
strategy:
3535
matrix:
36-
go-version: [ 1.20.x, 1.21.x ]
36+
go-version: [ 1.22.x ]
3737
platform: [ ubuntu-latest, macos-latest, windows-latest ]
3838
runs-on: ${{ matrix.platform }}
3939
steps:
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
go-version: ${{ matrix.go-version }}
4444
- name: Checkout code
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646
- name: Run tests with coverage
4747
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic
4848
- name: Upload coverage report to Codecov
@@ -55,7 +55,7 @@ jobs:
5555
name: Postgres
5656
strategy:
5757
matrix:
58-
go-version: [ 1.20.x, 1.21.x ]
58+
go-version: [ 1.22.x ]
5959
platform: [ ubuntu-latest ]
6060
runs-on: ${{ matrix.platform }}
6161
services:
@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
go-version: ${{ matrix.go-version }}
7878
- name: Checkout code
79-
uses: actions/checkout@v3
79+
uses: actions/checkout@v4
8080
- name: Run tests with coverage
8181
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./postgres
8282
env:
@@ -95,7 +95,7 @@ jobs:
9595
name: Redis
9696
strategy:
9797
matrix:
98-
go-version: [ 1.20.x, 1.21.x ]
98+
go-version: [ 1.22.x ]
9999
platform: [ ubuntu-latest ]
100100
runs-on: ${{ matrix.platform }}
101101
services:
@@ -114,7 +114,7 @@ jobs:
114114
with:
115115
go-version: ${{ matrix.go-version }}
116116
- name: Checkout code
117-
uses: actions/checkout@v3
117+
uses: actions/checkout@v4
118118
- name: Run tests with coverage
119119
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./redis
120120
env:
@@ -130,7 +130,7 @@ jobs:
130130
name: MySQL
131131
strategy:
132132
matrix:
133-
go-version: [ 1.20.x, 1.21.x ]
133+
go-version: [ 1.22.x ]
134134
platform: [ ubuntu-20.04 ]
135135
runs-on: ${{ matrix.platform }}
136136
steps:
@@ -141,7 +141,7 @@ jobs:
141141
with:
142142
go-version: ${{ matrix.go-version }}
143143
- name: Checkout code
144-
uses: actions/checkout@v3
144+
uses: actions/checkout@v4
145145
- name: Run tests with coverage
146146
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./mysql
147147
env:
@@ -159,7 +159,7 @@ jobs:
159159
name: Mongo
160160
strategy:
161161
matrix:
162-
go-version: [ 1.20.x, 1.21.x ]
162+
go-version: [ 1.22.x ]
163163
platform: [ ubuntu-latest ]
164164
runs-on: ${{ matrix.platform }}
165165
services:
@@ -181,7 +181,7 @@ jobs:
181181
with:
182182
go-version: ${{ matrix.go-version }}
183183
- name: Checkout code
184-
uses: actions/checkout@v3
184+
uses: actions/checkout@v4
185185
- name: Run tests with coverage
186186
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./mongo
187187
env:
@@ -196,7 +196,7 @@ jobs:
196196
name: SQLite
197197
strategy:
198198
matrix:
199-
go-version: [ 1.20.x, 1.21.x ]
199+
go-version: [ 1.22.x ]
200200
platform: [ ubuntu-latest ]
201201
runs-on: ${{ matrix.platform }}
202202
steps:
@@ -205,7 +205,7 @@ jobs:
205205
with:
206206
go-version: ${{ matrix.go-version }}
207207
- name: Checkout code
208-
uses: actions/checkout@v3
208+
uses: actions/checkout@v4
209209
- name: Run tests with coverage
210210
run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./sqlite
211211
- name: Upload coverage report to Codecov

.github/workflows/lsif.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,11 @@ jobs:
1313
if: github.repository == 'flamego/session'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Generate LSIF data
1818
uses: sourcegraph/lsif-go-action@master
1919
- name: Upload LSIF data to sourcegraph.com
2020
continue-on-error: true
2121
uses: docker://sourcegraph/src-cli:latest
2222
with:
2323
args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
24-
- name: Upload LSIF data to cs.unknwon.dev
25-
continue-on-error: true
26-
uses: docker://sourcegraph/src-cli:latest
27-
with:
28-
args: -endpoint=https://cs.unknwon.dev lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)