Skip to content

Commit b16ee64

Browse files
committed
Update .github/workflows/ci-test.yml to test with go1.18
1 parent a20ee93 commit b16ee64

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
ci-test:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04
88
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
99
strategy:
1010
matrix:
11-
go-version: ['1.16.x', '1.17.x']
11+
go-version: ['1.16.x', '1.17.x', '1.18.x']
1212
env:
1313
GO111MODULE: on # Needed for github.com/google/go-github/v38
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818

1919
- name: Install Go ${{ matrix.go-version }}
20-
uses: actions/setup-go@v2
20+
uses: actions/setup-go@v3
2121
with:
2222
go-version: ${{ matrix.go-version }}
2323

2424
- run: diff -u <(echo -n) <(gofmt -d -s .)
2525

26-
- run: go get -t -v ./...
26+
- run: go install -v ./...
2727

2828
- run: go test -v ./...
2929

@@ -32,7 +32,7 @@ jobs:
3232
- name: apt install needed Debian packages
3333
run: |
3434
sudo eatmydata apt update
35-
sudo eatmydata apt install git-buildpackage golang-any pristine-tar pandoc
35+
sudo eatmydata apt install git-buildpackage pristine-tar pandoc
3636
3737
- name: Generate man page from Markdown
3838
run: pandoc -f markdown -t man -s dh-make-golang.md -o dh-make-golang.1
@@ -46,7 +46,7 @@ jobs:
4646
~/go/bin/dh-make-golang -type p -pristine-tar -program_package_name gh github.com/cli/cli
4747
4848
- name: Upload dh-make-golang test run as artifact
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3
5050
with:
5151
name: dh-make-golang_test-run_go${{ matrix.go-version }}
5252
path: _test-run

0 commit comments

Comments
 (0)