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
aba8d536
Unverified
Commit
aba8d536
authored
Apr 06, 2021
by
web3-bot
Committed by
GitHub
Apr 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync: update CI config files (#147)
parent
d82dff52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
.github/workflows/go-check.yml
.github/workflows/go-check.yml
+8
-0
.github/workflows/go-test.yml
.github/workflows/go-test.yml
+1
-7
No files found.
.github/workflows/go-check.yml
View file @
aba8d536
...
@@ -21,6 +21,14 @@ jobs:
...
@@ -21,6 +21,14 @@ jobs:
go mod tidy
go mod tidy
diff go.mod go.mod.orig
diff go.mod go.mod.orig
diff go.sum go.sum.orig
diff go.sum go.sum.orig
-
name
:
gofmt
if
:
${{ success() || failure() }}
# run this step even if the previous one failed
run
:
|
out=$(gofmt -s -l .)
if [[ -n "$out" ]]; then
echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}'
exit 1
fi
-
name
:
go vet
-
name
:
go vet
if
:
${{ success() || failure() }}
# run this step even if the previous one failed
if
:
${{ success() || failure() }}
# run this step even if the previous one failed
run
:
go vet ./...
run
:
go vet ./...
...
...
.github/workflows/go-test.yml
View file @
aba8d536
...
@@ -31,14 +31,8 @@ jobs:
...
@@ -31,14 +31,8 @@ jobs:
-
name
:
Run tests with race detector
-
name
:
Run tests with race detector
if
:
${{ matrix.os == 'ubuntu' }}
# speed things up. Windows and OSX VMs are slow
if
:
${{ matrix.os == 'ubuntu' }}
# speed things up. Windows and OSX VMs are slow
run
:
go test -v -race ./...
run
:
go test -v -race ./...
-
name
:
Check if codecov.yml exists
# only upload to Codecov if there's a codecov.yml
id
:
check_codecov
uses
:
andstor/file-existence-action@87d74d4732ddb824259d80c8a508c0124bf1c673
# v1.0.1
with
:
files
:
"
codecov.yml"
-
name
:
Upload coverage to Codecov
-
name
:
Upload coverage to Codecov
if
:
steps.check_codecov.outputs.files_exists == 'true'
uses
:
codecov/codecov-action@fcebab03f26c7530a22baa63f06b3e0515f0c7cd
# v1.3.1
uses
:
codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649
# v1.2.1
with
:
with
:
file
:
coverage.txt
file
:
coverage.txt
env_vars
:
OS=${{ matrix.os }}, GO=${{ matrix.go }}
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