Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
fed3836a
Commit
fed3836a
authored
Mar 30, 2021
by
web3-bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add .github/workflows/go-check.yml
parent
afab4921
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
.github/workflows/go-check.yml
.github/workflows/go-check.yml
+32
-0
No files found.
.github/workflows/go-check.yml
0 → 100644
View file @
fed3836a
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.
on
:
[
push
,
pull_request
]
jobs
:
unit
:
runs-on
:
ubuntu-latest
name
:
Go checks
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-go@v2
with
:
go-version
:
"
1.16.x"
-
name
:
Install staticcheck
run
:
go install honnef.co/go/tools/cmd/staticcheck@be534f007836a777104a15f2456cd1fffd3ddee8
# v2020.2.2
-
name
:
Check that go.mod is tidy
run
:
|
cp go.mod go.mod.orig
cp go.sum go.sum.orig
go mod tidy
diff go.mod go.mod.orig
diff go.sum go.sum.orig
-
name
:
go vet
if
:
${{ success() || failure() }}
# run this step even if the previous one failed
run
:
go vet ./...
-
name
:
staticcheck
if
:
${{ success() || failure() }}
# run this step even if the previous one failed
run
:
|
set -o pipefail
staticcheck ./... | sed -e 's@\(.*\)\.go@./\1.go@g'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment