diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f745243 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,16 @@ +name: lint +on: + pull_request: {} + +jobs: + lint: + name: lint + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.16 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make lint diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml new file mode 100644 index 0000000..764b7d6 --- /dev/null +++ b/.github/workflows/test-unit.yml @@ -0,0 +1,19 @@ +name: test-unit +on: + pull_request: {} + +jobs: + unit: + name: unit + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.16 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make test + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: coverage.out diff --git a/Makefile b/Makefile index 06223d4..d02813c 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,6 @@ lint: @go fmt ./... test: - @ginkgo ./... + @go test -coverprofile=coverage.out -covermode=count -short ./... .PHONY: test lint