Skip to content

Commit

Permalink
Merge pull request #79 from muonsoft/code-climate-coverage
Browse files Browse the repository at this point in the history
code-climate-coverage
  • Loading branch information
strider2038 authored Nov 5, 2022
2 parents 467890e + 0f03033 commit 5ca25ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ jobs:

- name: Run tests
run: go test -v $(go list ./... | grep -v vendor)

- name: Code Climate Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: go test -v ./... -coverprofile=c.out
prefix: "github.com/muonsoft/openapi-mock"
13 changes: 0 additions & 13 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 5ca25ba

Please sign in to comment.