enable unit test in workflow (#66)

This commit is contained in:
Hongcai Ren 2020-12-09 10:36:04 +08:00 committed by GitHub
parent 631b719bbd
commit ce26d4acfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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