Skip to content

Commit

Permalink
enable unit test in workflow (karmada-io#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowMango authored Dec 9, 2020
1 parent 631b719 commit ce26d4a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,16 @@ jobs:
run: make all
- name: make images
run: make images

test:
name: run unit test
needs: build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: make test
run: make test
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ karmadactl: $(SOURCES)
clean:
rm -rf karmada-controller-manager

.PHONY: test
test:
go test ./...
go test --race --v ./pkg/...

images: image-karmada-controller-manager

Expand Down

0 comments on commit ce26d4a

Please sign in to comment.