Skip to content

Commit c49d6e0

Browse files
committed
chore: update CI
1 parent e567673 commit c49d6e0

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,26 @@ on:
44
branches:
55
- main
66
pull_request:
7+
78
jobs:
89
golangci:
910
name: CI
10-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
go-version: [ oldstable, stable ]
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
env:
17+
GOLANGCI_LINT_VERSION: v2.11
1118
steps:
12-
- uses: actions/setup-go@v5
19+
- uses: actions/checkout@v6
20+
- uses: actions/setup-go@v6
1321
with:
14-
go-version: 1.23
15-
- uses: actions/checkout@v4
22+
go-version: oldstable
23+
- uses: golangci/golangci-lint-action@v9
24+
with:
25+
version: ${{ env.GOLANGCI_LINT_VERSION }}
26+
install-only: true
1627
- run: make lint
1728
- run: make test
1829
- run: make build

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ test: build
2424
diff -a pgx_examples_results.txt ./testdata/pgx_examples/expected_results.txt
2525

2626
lint:
27-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.62.2
28-
./bin/golangci-lint run
27+
golangci-lint run

0 commit comments

Comments
 (0)