Skip to content

Commit

Permalink
use fixed job names
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Apr 15, 2020
1 parent da68386 commit 265b931
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
strategy:
fail-fast: false
matrix:
target:
- "check-setup check"
- "docker e2e-docker cli"
- "test GOFLAGS=-race"
- "e2e-examples"
job:
- verify
- build
- test
- e2e-examples
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand All @@ -31,12 +31,20 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}

- name: make ${{ matrix.target }}
- name: ${{ matrix.job }}
run: |
# workaround for https://github.com/actions/setup-go/issues/14
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
make $target
if [[ "$job" == "verify" ]]; then
make check-setup check
elif [[ "$job" == "build" ]]; then
make docker e2e-docker cli
elif [[ "$job" == "test" ]]; then
make test GOFLAGS=-race
else
make $job
fi
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
env:
target: ${{ matrix.target }}
job: ${{ matrix.job }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ debug-build-docker: debug-build
debug-build:
$(GO_BUILD) -ldflags '$(LDFLAGS)' -o misc/images/debug-launcher/bin/debug-launcher misc/cmd/debug-launcher/main.go

.PHONY: check check-setup check-all build e2e-build debug-build cli e2e
.PHONY: check check-setup check-all build e2e-build debug-build cli e2e test docker e2e-docker debug-build-docker

0 comments on commit 265b931

Please sign in to comment.