Skip to content

Commit 2886e3c

Browse files
authored
Merge pull request #9 from uchiiii/fix_ci
Fix ci to use setup-go@v4
2 parents 7d0a73d + 7c674f5 commit 2886e3c

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,17 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.14.x]
7+
go-version: [1.19.x]
88
platform: [ubuntu-latest, macos-latest]
99
runs-on: ${{ matrix.platform }}
1010
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
1113
- name: Install Go
12-
uses: actions/setup-go@v1
14+
uses: actions/setup-go@v4
1315
with:
1416
go-version: ${{ matrix.go-version }}
15-
- name: setup env
16-
run: |
17-
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
18-
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
19-
shell: bash
20-
- name: Checkout code
21-
uses: actions/checkout@v2
22-
- name: cache
23-
uses: actions/cache@v1
24-
with:
25-
path: ~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
2917
- name: Run test code
3018
run: go test ./...
19+
- name: Build
20+
run: go build

go.mod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
module github.com/uchiiii/csv2md
22

3-
go 1.13
3+
go 1.19
44

55
require github.com/urfave/cli/v2 v2.2.0
6+
7+
require (
8+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect
9+
github.com/russross/blackfriday/v2 v2.0.1 // indirect
10+
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
11+
)

go.sum

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
21
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
32
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
43
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
@@ -10,7 +9,5 @@ github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5I
109
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
1110
github.com/urfave/cli/v2 v2.2.0 h1:JTTnM6wKzdA0Jqodd966MVj4vWbbquZykeX1sKbe2C4=
1211
github.com/urfave/cli/v2 v2.2.0/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ=
13-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1412
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
15-
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
1613
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

0 commit comments

Comments
 (0)