diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eda304f..93700bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,3 +35,11 @@ jobs: - name: Run tests run: go test -v $(go list ./... | grep -v vendor) + + - name: Code Climate Coverage + uses: paambaati/codeclimate-action@v3.2.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + with: + coverageCommand: go test -v ./... -coverprofile=c.out + prefix: "github.com/muonsoft/openapi-mock" diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 78e79a0..f1df244 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -6,19 +6,6 @@ build: tests: override: - go-scrutinizer-run - tests: - environment: - go: - version: 'go1.18' - project_setup: - override: - - go mod download - tests: - override: - - command: go test -v $(go list ./... | grep -v vendor) -coverprofile=cover.out - coverage: - file: 'cover.out' - format: 'go-cc' filter: excluded_paths: diff --git a/README.md b/README.md index 7f5e50c..799755b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # OpenAPI Mock Server ![CI](https://github.com/muonsoft/openapi-mock/workflows/CI/badge.svg?branch=master) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/muonsoft/openapi-mock/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/muonsoft/openapi-mock/?branch=master) -[![Code Coverage](https://scrutinizer-ci.com/g/muonsoft/openapi-mock/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/muonsoft/openapi-mock/?branch=master) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/muonsoft/openapi-mock) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/muonsoft/openapi-mock/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/muonsoft/openapi-mock/?branch=master) +[![Maintainability](https://api.codeclimate.com/v1/badges/158deb3434a84924dade/maintainability)](https://codeclimate.com/github/muonsoft/openapi-mock/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/158deb3434a84924dade/test_coverage)](https://codeclimate.com/github/muonsoft/openapi-mock/test_coverage) OpenAPI API mock server with random data generation by specified schemas.