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
dms3
go-dms3-pq
Commits
bca88094
Commit
bca88094
authored
Jun 01, 2021
by
web3-bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update .github/workflows/go-test.yml
parent
a06433f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
.github/workflows/go-test.yml
.github/workflows/go-test.yml
+14
-5
No files found.
.github/workflows/go-test.yml
View file @
bca88094
...
...
@@ -2,6 +2,7 @@
# See https://github.com/protocol/.github/ for details.
on
:
[
push
,
pull_request
]
name
:
Go Test
jobs
:
unit
:
...
...
@@ -11,9 +12,11 @@ jobs:
os
:
[
"
ubuntu"
,
"
windows"
,
"
macos"
]
go
:
[
"
1.15.x"
,
"
1.16.x"
]
runs-on
:
${{ matrix.os }}-latest
name
:
Unit tests (
${{ matrix.os}}
, G
o ${{ matrix.go }})
name
:
${{ matrix.os}}
(g
o ${{ matrix.go }})
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
recursive
-
uses
:
actions/setup-go@v2
with
:
go-version
:
${{ matrix.go }}
...
...
@@ -22,17 +25,23 @@ jobs:
go version
go env
-
name
:
Run tests
run
:
go test -v -coverprofile coverage.txt ./...
uses
:
protocol/multiple-go-modules@v1.0
with
:
run
:
go test -v -coverprofile coverage.txt ./...
-
name
:
Run tests (32 bit)
if
:
${{ matrix.os != 'macos' }}
# can't run 32 bit tests on OSX.
uses
:
protocol/multiple-go-modules@v1.0
env
:
GOARCH
:
386
run
:
go test -v ./...
with
:
run
:
go test -v ./...
-
name
:
Run tests with race detector
if
:
${{ matrix.os == 'ubuntu' }}
# speed things up. Windows and OSX VMs are slow
run
:
go test -v -race ./...
uses
:
protocol/multiple-go-modules@v1.0
with
:
run
:
go test -v -race ./...
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@
967e2b38a85a62bd61be5529ada27ebc109948c2
# v1.
4.1
uses
:
codecov/codecov-action@
a1ed4b322b4b38cb846afb5a0ebfa17086917d27
# v1.
5.0
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