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
d783511b
Unverified
Commit
d783511b
authored
Dec 10, 2021
by
web3-bot
Committed by
GitHub
Dec 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync: update CI config files (#167)
parent
fc723035
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
3 deletions
+51
-3
.github/workflows/go-check.yml
.github/workflows/go-check.yml
+1
-1
.github/workflows/go-test.yml
.github/workflows/go-test.yml
+13
-2
.github/workflows/release-check.yml
.github/workflows/release-check.yml
+11
-0
.github/workflows/releaser.yml
.github/workflows/releaser.yml
+11
-0
.github/workflows/tagpush.yml
.github/workflows/tagpush.yml
+12
-0
version.json
version.json
+3
-0
No files found.
.github/workflows/go-check.yml
View file @
d783511b
...
...
@@ -27,7 +27,7 @@ jobs:
echo "RUNGOGENERATE=true" >> $GITHUB_ENV
fi
-
name
:
Install staticcheck
run
:
go install honnef.co/go/tools/cmd/staticcheck@
df71e5d0e0ed317ebf43e6e59cf919430fa4b8f2
# 2021.1.
1
(v0.2.
1
)
run
:
go install honnef.co/go/tools/cmd/staticcheck@
c8caa92bad8c27ae734c6725b8a04932d54a147b
# 2021.1.
2
(v0.2.
2
)
-
name
:
Check that go.mod is tidy
uses
:
protocol/multiple-go-modules@v1.2
with
:
...
...
.github/workflows/go-test.yml
View file @
d783511b
...
...
@@ -26,13 +26,24 @@ jobs:
run
:
|
go version
go env
-
name
:
Use msys2 on windows
if
:
${{ matrix.os == 'windows' }}
shell
:
bash
# The executable for msys2 is also called bash.cmd
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#shells
# If we prepend its location to the PATH
# subsequent 'shell: bash' steps will use msys2 instead of gitbash
run
:
echo "C:/msys64/usr/bin" >> $GITHUB_PATH
-
name
:
Run repo-specific setup
uses
:
./.github/actions/go-test-setup
if
:
hashFiles('./.github/actions/go-test-setup') != ''
-
name
:
Run tests
uses
:
protocol/multiple-go-modules@v1.2
with
:
run
:
go test -v -coverprofile module-coverage.txt ./...
# Use -coverpkg=./..., so that we include cross-package coverage.
# If package ./A imports ./B, and ./A's tests also cover ./B,
# this means ./B's coverage will be significantly higher than 0%.
run
:
go test -v -coverprofile=module-coverage.txt -coverpkg=./... ./...
-
name
:
Run tests (32 bit)
if
:
${{ matrix.os != 'macos' }}
# can't run 32 bit tests on OSX.
uses
:
protocol/multiple-go-modules@v1.2
...
...
@@ -49,7 +60,7 @@ jobs:
shell
:
bash
run
:
echo "COVERAGES=$(find . -type f -name 'module-coverage.txt' | tr -s '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@
51d810878be5422784e86451c0e7c14e5860ec47
# v2.
0.2
uses
:
codecov/codecov-action@
f32b3a3741e1053eb607407145bc9619351dc93b
# v2.
1.0
with
:
files
:
'
${{
env.COVERAGES
}}'
env_vars
:
OS=${{ matrix.os }}, GO=${{ matrix.go }}
.github/workflows/release-check.yml
0 → 100644
View file @
d783511b
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.
name
:
Release Checker
on
:
pull_request
:
paths
:
[
'
version.json'
]
jobs
:
release-check
:
uses
:
protocol/.github/.github/workflows/release-check.yml@master
.github/workflows/releaser.yml
0 → 100644
View file @
d783511b
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.
name
:
Releaser
on
:
push
:
paths
:
[
'
version.json'
]
jobs
:
releaser
:
uses
:
protocol/.github/.github/workflows/releaser.yml@master
.github/workflows/tagpush.yml
0 → 100644
View file @
d783511b
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.
name
:
Tag Push Checker
on
:
push
:
tags
:
-
v*
jobs
:
releaser
:
uses
:
protocol/.github/.github/workflows/tagpush.yml@master
version.json
0 → 100644
View file @
d783511b
{
"version"
:
"v0.4.1"
}
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