Skip to content

Commit

Permalink
Finish migration to GH Actions (#87)
Browse files Browse the repository at this point in the history
* Finish migration to GH Actions

Signed-off-by: Yuri Shkuro <[email protected]>

* Always report coverage

Signed-off-by: Yuri Shkuro <[email protected]>

* Disable dep trying to update deps

Signed-off-by: Yuri Shkuro <[email protected]>

* Run dep ensure

Signed-off-by: Yuri Shkuro <[email protected]>

* pass vars

Signed-off-by: Yuri Shkuro <[email protected]>

* dep check

Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Dec 13, 2020
1 parent 8e6d08f commit 78a0e7f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 72 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ jobs:
job:
- dep: true
glide: false
cov: true
name: unit-tests with dep
- dep: false
glide: true
cov: false
name: unit-tests with glide
name: ${{ matrix.job.name }}
steps:
Expand All @@ -36,11 +34,10 @@ jobs:
- name: Run tests
run: |
cd $PROJECT
make test-ci
make test-ci USE_DEP=${{ matrix.job.dep }} USE_GLIDE=${{ matrix.job.glide }}
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
with:
file: cover.out
fail_ci_if_error: true
verbose: true
if: matrix.job.cov == 'true'
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

37 changes: 8 additions & 29 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ COLORIZE=sed ''/PASS/s//$(PASS)/'' | sed ''/FAIL/s//$(FAIL)/''
.PHONY: test-and-lint
test-and-lint: test fmt lint

.PHONY: test
test:
.PHONY: dep-check
dep-check:
ifeq ($(USE_DEP),true)
dep check
endif

.PHONY: test
test: dep-check
$(GOTEST) $(PACKAGES) | $(COLORIZE)

.PHONY: fmt
Expand All @@ -52,10 +55,12 @@ lint:
install:
ifeq ($(USE_DEP),true)
dep version || make install-dep
dep ensure
dep version
dep ensure -vendor-only
dep status
else ifeq ($(USE_GLIDE),true)
glide --version || go get github.com/Masterminds/glide
glide --version
glide install
endif

Expand All @@ -67,7 +72,6 @@ cover:
cover-html: cover
go tool cover -html=cover.out -o cover.html


idl-submodule:
git submodule init
git submodule update
Expand All @@ -77,7 +81,7 @@ thrift-image:

.PHONY: install-dep
install-dep:
- curl -L -s https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64 -o $$GOPATH/bin/dep
- curl -L -s https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-amd64 -o $$GOPATH/bin/dep
- chmod +x $$GOPATH/bin/dep

.PHONY: install-ci
Expand All @@ -88,4 +92,4 @@ install-ci: install
go get golang.org/x/lint/golint

.PHONY: test-ci
test-ci: cover lint
test-ci: dep-check cover lint
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Please see [CONTRIBUTING.md](CONTRIBUTING.md).

[doc-img]: https://godoc.org/github.com/uber/jaeger-lib?status.svg
[doc]: https://godoc.org/github.com/uber/jaeger-lib
[ci-img]: https://travis-ci.org/jaegertracing/jaeger-lib.svg?branch=master
[ci]: https://travis-ci.org/jaegertracing/jaeger-lib
[ci-img]: https://github.com/jaegertracing/jaeger-lib/workflows/Unit%20Tests/badge.svg?branch=master
[ci]: https://github.com/jaegertracing/jaeger-lib/actions?query=branch%3Amaster
[cov-img]: https://coveralls.io/repos/jaegertracing/jaeger-lib/badge.svg?branch=master&service=github
[cov]: https://coveralls.io/github/jaegertracing/jaeger-lib?branch=master

0 comments on commit 78a0e7f

Please sign in to comment.