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

Commit2f8c287

Browse files
radar07SamMorrowDrums
authored andcommitted
chore: revertgo mod check
1 parent045ecd3 commit2f8c287

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

‎.github/workflows/lint.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,27 @@ jobs:
1717
-name:Set up Go
1818
uses:actions/setup-go@v5
1919
with:
20-
go-version-file:"go.mod"
20+
go-version-file:'go.mod'
21+
22+
-name:Verify dependencies
23+
run:|
24+
go mod verify
25+
go mod download
26+
27+
-name:Run checks
28+
run:|
29+
STATUS=0
30+
assert-nothing-changed() {
31+
local diff
32+
"$@" >/dev/null || return 1
33+
if ! diff="$(git diff -U1 --color --exit-code)"; then
34+
printf '\e[31mError: running `\e[1m%s\e[22m` results in modifications that you must check into version control:\e[0m\n%s\n\n' "$*" "$diff" >&2
35+
git checkout -- .
36+
STATUS=1
37+
fi
38+
}
39+
assert-nothing-changed go mod tidy
40+
exit $STATUS
2141
2242
-name:golangci-lint
2343
uses:golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp