Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GH action for crossdock tests (#550)
* Add GH action for crossdock tests Signed-off-by: Yuri Shkuro <github@ysh.us> * add TODO Signed-off-by: Yuri Shkuro <github@ysh.us> * separate Signed-off-by: Yuri Shkuro <github@ysh.us> * set path Signed-off-by: Yuri Shkuro <github@ysh.us>
- Loading branch information
1 parent
65a5a47
commit 9d60a81
Showing
4 changed files
with
77 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "Integration Tests" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
crossdock-tests: | ||
strategy: | ||
fail-fast: true | ||
runs-on: ubuntu-latest | ||
env: | ||
PROJECT: github.com/uber/jaeger-client-go | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.15 | ||
|
||
- name: Install dependencies and tools | ||
run: | | ||
export GOPATH=$HOME/go | ||
export PROJECT=$GOPATH/src/${{env.PROJECT}} | ||
mkdir -p $GOPATH | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
mkdir -p $(dirname $PROJECT) | ||
ln -s $(pwd) $PROJECT | ||
cd $PROJECT | ||
make install-ci USE_DEP=true | ||
dep version | ||
docker-compose version | ||
- name: Run tests | ||
run: | | ||
export GOPATH=$HOME/go | ||
export PROJECT=$GOPATH/src/${{env.PROJECT}} | ||
cd $PROJECT | ||
make crossdock | ||
- name: Dump docker-compose logs | ||
if: ${{ failure() }} | ||
run: | | ||
make crossdock-logs | ||
# TODO publish crossdock image to Docher Hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters