Skip to content

Commit

Permalink
fix(ci): refactor github actions and Makefile targets (#42)
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 authored Apr 21, 2020
1 parent e276147 commit 9be0ce7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ jobs:
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 1
path: go/src/github.com/openebs/cstor-operators
uses: actions/checkout@v2

- name: verify dependencies
run: make deps

- name: verify tests
run: make test
env:
GOPATH: /home/runner/work/cstor-operators/go
build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -38,12 +33,7 @@ jobs:
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 1
path: go/src/github.com/openebs/cstor-operators
uses: actions/checkout@v2

- name: build all cmd
run: go build ./cmd/...
env:
GOPATH: /home/runner/work/cstor-operators/go
run: make build
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ deps:

.PHONY: test
test:
go fmt ./...
go test ./...


.PHONY: build
build:
go build ./cmd/...

cvc-operator:
@echo -n "--> cvc-operator <--"
@echo " "
Expand Down

0 comments on commit 9be0ce7

Please sign in to comment.