Skip to content

Commit 989837a

Browse files
committed
ci-test: Bump go version to 1.21 and 1.22 for testing
Also use the latest GitHub Actions: - Bump actions/checkout@v3 to actions/checkout@v4 - Bump actions/setup-go@v3 to actions/setup-go@v5 - Bump actions/upload-artifact@v3 to actions/upload-artifact@v4
1 parent b226a46 commit 989837a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci-test.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
name: CI Test
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47

58
jobs:
69
ci-test:
710
runs-on: ubuntu-22.04
811
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
912
strategy:
1013
matrix:
11-
go-version: ['1.16.x', '1.17.x', '1.18.x']
12-
env:
13-
GO111MODULE: on # Needed for github.com/google/go-github/v38
14+
go-version: ['1.21', '1.22']
1415

1516
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v3
17+
- name: Checkout
18+
uses: actions/checkout@v4
1819

1920
- name: Install Go ${{ matrix.go-version }}
20-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@v5
2122
with:
2223
go-version: ${{ matrix.go-version }}
24+
check-latest: true
2325

2426
- run: diff -u <(echo -n) <(gofmt -d -s .)
2527

@@ -46,7 +48,7 @@ jobs:
4648
~/go/bin/dh-make-golang -type p -pristine-tar -program_package_name gh github.com/cli/cli
4749
4850
- name: Upload dh-make-golang test run as artifact
49-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5052
with:
5153
name: dh-make-golang_test-run_go${{ matrix.go-version }}
5254
path: _test-run

0 commit comments

Comments
 (0)