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
ld
go-codec-dagpb
Commits
8a2ff074
Commit
8a2ff074
authored
Dec 17, 2020
by
ipldbot
Committed by
Rod Vagg
Jan 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update go-test.yml
parent
593c392e
Pipeline
#864
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
.github/workflows/go-test.yml
.github/workflows/go-test.yml
+46
-0
No files found.
.github/workflows/go-test.yml
0 → 100644
View file @
8a2ff074
# Workflow managed by ipldbot. DO NOT EDIT.
# See https://github.com/ipld/.github/ for details.
on
:
[
push
,
pull_request
]
jobs
:
unit
:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
"
ubuntu"
,
"
windows"
,
"
macos"
]
go
:
[
"
1.14.x"
,
"
1.15.x"
]
runs-on
:
${{ matrix.os }}-latest
name
:
Unit tests (${{ matrix.os}}, Go ${{ matrix.go }})
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-go@v2
with
:
go-version
:
${{ matrix.go }}
-
name
:
Go information
run
:
|
go version
go env
-
name
:
Install dependencies
run
:
go install ./...
-
name
:
Run tests
run
:
go test -v -coverprofile coverage.txt ./...
-
name
:
Run tests (32 bit)
if
:
${{ matrix.os != 'macos' }}
# can't run 32 bit tests on OSX.
env
:
GOARCH
:
386
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 ./...
-
name
:
Check if codecov.yml exists
# only upload to Codecov if there's a codecov.yml
id
:
check_codecov
uses
:
andstor/file-existence-action@v1
with
:
files
:
"
codecov.yml"
-
name
:
Upload coverage to Codecov
if
:
steps.check_codecov.outputs.files_exists == 'true'
uses
:
codecov/codecov-action@v1
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