good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websocket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
github
nhooyr
websocket
Commits
9b9d7b4a
Unverified
Commit
9b9d7b4a
authored
Oct 14, 2019
by
Anmol Sethi
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup coveralls setup
parent
b0ac42c3
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/ci.yml
+5
-5
5 additions, 5 deletions
.github/workflows/ci.yml
ci/Dockerfile
+1
-0
1 addition, 0 deletions
ci/Dockerfile
ci/test.mk
+8
-4
8 additions, 4 deletions
ci/test.mk
with
14 additions
and
9 deletions
.github/workflows/ci.yml
+
5
−
5
View file @
9b9d7b4a
name
:
ci
name
:
ci
on
:
[
push
]
on
:
[
push
,
pull_request
]
jobs
:
jobs
:
fmt
:
fmt
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
container
:
nhooyr/websocket-ci@sha256:
046cd02e79dcbf81dc06eb6fd333fa8643f2503f437ddd46a4c1af9132078a2c
container
:
nhooyr/websocket-ci@sha256:
8a8fd73fdea33585d50a33619c4936adfd016246a2ed6bbfbf06def24b518a6a
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
run
:
make fmt
-
run
:
make fmt
lint
:
lint
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
container
:
nhooyr/websocket-ci@sha256:
046cd02e79dcbf81dc06eb6fd333fa8643f2503f437ddd46a4c1af9132078a2c
container
:
nhooyr/websocket-ci@sha256:
8a8fd73fdea33585d50a33619c4936adfd016246a2ed6bbfbf06def24b518a6a
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
run
:
make lint
-
run
:
make lint
test
:
test
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
container
:
nhooyr/websocket-ci@sha256:
046cd02e79dcbf81dc06eb6fd333fa8643f2503f437ddd46a4c1af9132078a2c
container
:
nhooyr/websocket-ci@sha256:
8a8fd73fdea33585d50a33619c4936adfd016246a2ed6bbfbf06def24b518a6a
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
run
:
make test
-
run
:
make test
env
:
env
:
COVERALLS_TOKEN
:
${{ secrets.
COVERALLS_TOKEN
}}
COVERALLS_TOKEN
:
${{ secrets.
github_token
}}
-
name
:
Upload coverage.html
-
name
:
Upload coverage.html
uses
:
actions/upload-artifact@master
uses
:
actions/upload-artifact@master
with
:
with
:
...
...
This diff is collapsed.
Click to expand it.
ci/Dockerfile
+
1
−
0
View file @
9b9d7b4a
...
@@ -3,6 +3,7 @@ FROM golang:1
...
@@ -3,6 +3,7 @@ FROM golang:1
RUN
apt-get update
RUN
apt-get update
RUN
apt-get
install
-y
chromium
RUN
apt-get
install
-y
chromium
RUN
apt-get
install
-y
npm
RUN
apt-get
install
-y
npm
RUN
apt-get
install
-y
jq
ENV
GOPATH=/root/gopath
ENV
GOPATH=/root/gopath
ENV
PATH=$GOPATH/bin:$PATH
ENV
PATH=$GOPATH/bin:$PATH
...
...
This diff is collapsed.
Click to expand it.
ci/test.mk
+
8
−
4
View file @
9b9d7b4a
...
@@ -7,11 +7,15 @@ ci/out/coverage.html: gotest
...
@@ -7,11 +7,15 @@ ci/out/coverage.html: gotest
go tool cover
-html
=
ci/out/coverage.prof
-o
=
ci/out/coverage.html
go tool cover
-html
=
ci/out/coverage.prof
-o
=
ci/out/coverage.html
coveralls
:
gotest
coveralls
:
gotest
# https://github.com/coverallsapp/github-action/blob/master/src/run.ts
echo
"--- coveralls"
echo
"--- coveralls"
export
GIT_BRANCH
=
$${
GITHUB_REF
}
export
GIT_BRANCH
=
"
$$
GITHUB_REF"
export
BUILD_NUMBER
=
$${
GITHUB_ACTION
}
export
BUILD_NUMBER
=
"
$$
GITHUB_SHA"
goveralls
-coverprofile
=
ci/out/coverage.prof
-service
=
github-actions
if
[[
$$
GITHUB_EVENT_NAME
==
pull_request
]]
;
then
export
CI_PULL_REQUEST
=
"
$$(
jq .number "
$$
GITHUB_EVENT_PATH
"
)
"
BUILD_NUMBER
=
"
$$
BUILD_NUMBER-PR-
$$
CI_PULL_REQUEST"
fi
goveralls
-coverprofile
=
ci/out/coverage.prof
-service
=
github
gotest
:
gotest
:
go
test
-covermode
=
count
-coverprofile
=
ci/out/coverage.prof
-coverpkg
=
./...
$${
GOTESTFLAGS-
}
./...
go
test
-covermode
=
count
-coverprofile
=
ci/out/coverage.prof
-coverpkg
=
./...
$${
GOTESTFLAGS-
}
./...
sed
-i
'/_stringer\.go/d'
ci/out/coverage.prof
sed
-i
'/_stringer\.go/d'
ci/out/coverage.prof
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment