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
p2p
go-p2p-swarm
Commits
eef02f81
Unverified
Commit
eef02f81
authored
May 04, 2021
by
web3-bot
Committed by
GitHub
May 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync: update CI config files (#259)
parent
6b6e765b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
.github/workflows/go-check.yml
.github/workflows/go-check.yml
+5
-4
.github/workflows/go-test.yml
.github/workflows/go-test.yml
+1
-1
No files found.
.github/workflows/go-check.yml
View file @
eef02f81
...
...
@@ -16,11 +16,12 @@ jobs:
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
if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then
echo "go.sum was added by go mod tidy"
exit 1
fi
git diff --exit-code -- go.sum go.mod
-
name
:
gofmt
if
:
${{ success() || failure() }}
# run this step even if the previous one failed
run
:
|
...
...
.github/workflows/go-test.yml
View file @
eef02f81
...
...
@@ -32,7 +32,7 @@ jobs:
if
:
${{ matrix.os == 'ubuntu' }}
# speed things up. Windows and OSX VMs are slow
run
:
go test -v -race ./...
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@
fcebab03f26c7530a22baa63f06b3e0515f0c7cd
# v1.
3
.1
uses
:
codecov/codecov-action@
967e2b38a85a62bd61be5529ada27ebc109948c2
# v1.
4
.1
with
:
file
:
coverage.txt
env_vars
:
OS=${{ matrix.os }}, GO=${{ matrix.go }}
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