Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit932af5f

Browse files
authored
Merge pull request#191 from dharsanb/master
Move test and lint to GitHub actions
2 parents66eba3e +569fc48 commit932af5f

File tree

5 files changed

+34
-19
lines changed

5 files changed

+34
-19
lines changed

‎.github/workflows/ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,15 @@ jobs:
88

99
steps:
1010
-name:Checkout code
11-
uses:actions/checkout@v2
12-
with:
13-
fetch-depth:50
11+
uses:actions/checkout@v4
1412

1513
-name:Set up Go
16-
uses:actions/setup-go@v4
14+
uses:actions/setup-go@v5
1715
with:
18-
go-version:'stable'
19-
20-
-name:Run lint
21-
run:make lint
16+
go-version-file:go.mod
2217

2318
-name:Run golangci-lint
24-
uses:golangci/golangci-lint-action@490e2450418f2d55f0e912d548cbae3b1fbc8e83
19+
uses:golangci/golangci-lint-action@v6
2520
with:
2621
version:'latest'
2722

@@ -30,14 +25,23 @@ jobs:
3025

3126
steps:
3227
-name:Checkout code
33-
uses:actions/checkout@v2
28+
uses:actions/checkout@v4
3429
with:
3530
fetch-depth:50
3631

3732
-name:Set up Go
3833
uses:actions/setup-go@v4
3934
with:
40-
go-version:'stable'
35+
go-version-file:go.mod
36+
37+
38+
-name:Go mod vendor
39+
run:go mod vendor
40+
41+
-name:Configure Git User
42+
run:|
43+
git config --global user.name "GitHub Actions Bot"
44+
git config --global user.email "actions@github.com"
4145
4246
-name:Run tests
4347
run:|

‎.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ dist
77
# Editors and IDEs
88
.vscode
99
.idea
10+
11+
# Vendor directory
12+
vendor

‎Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ install:
1616
test:
1717
gotest -v ./...
1818
./integrationtest.sh| cat# cat -- no tty, no confirmations
19+
1920
lint:
20-
"qa/lint.sh"
21+
golangci-lint run
2122

2223
update_deps:
2324
go get

‎go.mod

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
modulegithub.com/naggie/dstask
22

3-
go1.21
4-
5-
toolchaingo1.22.8
3+
go1.23.4
64

75
require (
86
github.com/BurntSushi/tomlv1.4.0
@@ -11,7 +9,7 @@ require (
119
github.com/mattn/go-runewidthv0.0.16
1210
github.com/shurcooL/githubv4v0.0.0-20240727222349-48295856cce7
1311
github.com/sirupsen/logrusv1.9.3
14-
github.com/stretchr/testifyv1.7.0
12+
github.com/stretchr/testifyv1.10.0
1513
golang.org/x/oauth2v0.24.0
1614
golang.org/x/sysv0.28.0
1715
gopkg.in/yaml.v2v2.4.0
@@ -22,11 +20,12 @@ require (
2220
require (
2321
github.com/davecgh/go-spewv1.1.1// indirect
2422
github.com/google/go-cmpv0.6.0// indirect
25-
github.com/kr/prettyv0.1.0// indirect
23+
github.com/kr/prettyv0.2.1// indirect
24+
github.com/kr/textv0.1.0// indirect
2625
github.com/pkg/errorsv0.9.1// indirect
2726
github.com/pmezard/go-difflibv1.0.0// indirect
2827
github.com/rivo/unisegv0.4.7// indirect
2928
github.com/shurcooL/graphqlv0.0.0-20230722043721-ed46e5a46466// indirect
30-
gopkg.in/check.v1v1.0.0-20180628173108-788fd7840127// indirect
31-
gopkg.in/yaml.v3v3.0.0// indirect
29+
gopkg.in/check.v1v1.0.0-20201130134442-10cb98267c6c// indirect
30+
gopkg.in/yaml.v3v3.0.1// indirect
3231
)

‎go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
99
github.com/google/go-cmpv0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
1010
github.com/kr/prettyv0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
1111
github.com/kr/prettyv0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
12+
github.com/kr/prettyv0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
13+
github.com/kr/prettyv0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
1214
github.com/kr/ptyv1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
1315
github.com/kr/textv0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
1416
github.com/kr/textv0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
@@ -32,6 +34,8 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs
3234
github.com/stretchr/objxv0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
3335
github.com/stretchr/testifyv1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
3436
github.com/stretchr/testifyv1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
37+
github.com/stretchr/testifyv1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
38+
github.com/stretchr/testifyv1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
3539
golang.org/x/oauth2v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
3640
golang.org/x/oauth2v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
3741
golang.org/x/sysv0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -41,11 +45,15 @@ golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
4145
gopkg.in/check.v1v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4246
gopkg.in/check.v1v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
4347
gopkg.in/check.v1v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
48+
gopkg.in/check.v1v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
49+
gopkg.in/check.v1v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
4450
gopkg.in/yaml.v2v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
4551
gopkg.in/yaml.v2v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
4652
gopkg.in/yaml.v3v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
4753
gopkg.in/yaml.v3v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA=
4854
gopkg.in/yaml.v3v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
55+
gopkg.in/yaml.v3v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
56+
gopkg.in/yaml.v3v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
4957
gotest.toolsv2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
5058
gotest.toolsv2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
5159
mvdan.cc/xurls/v2v2.5.0 h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp