Skip to content

Commit

Permalink
Merge pull request #101 from gibahjoe/codecov
Browse files Browse the repository at this point in the history
Added support for codecov to monitor code coverage
  • Loading branch information
gibahjoe authored Aug 30, 2023
2 parents 502cdd2 + 229815e commit d586573
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 437,966 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ jobs:
- name: Run analyzer
run: dart analyze --fatal-warnings
- name: Run tests
run: dart test
run: dart run test --coverage="coverage"
- name: Install coverage tools
run: dart pub global activate coverage
- name: format coverage
run: $HOME/.pub-cache/bin/format_coverage --lcov --in=coverage --out=./coverage.lcov --package=. --report-on=lib
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
files: ./coverage.lcov
verbose: true
flags: ${{ matrix.work_dir }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

build:
name: Build example project 🛠️
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/release_please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: release-please
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ doc/api/
.idea/

# macOS
.DS_Store
.DS_Store

**/coverage
5 changes: 5 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"openapi-generator-cli": "4.12.0",
"openapi-generator-annotations": "4.12.0",
"openapi-generator": "4.12.1"
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![pub package](https://img.shields.io/pub/v/openapi_generator.svg) ![Pub Likes](https://img.shields.io/pub/likes/openapi_generator?) ![Pub Points](https://img.shields.io/pub/points/openapi_generator) ![Pub Popularity](https://img.shields.io/pub/popularity/openapi_generator) ![GitHub Repo stars](https://img.shields.io/github/stars/gibahjoe/openapi-generator-dart)
[![codecov](https://codecov.io/gh/gibahjoe/openapi-generator-dart/graph/badge.svg?token=MF8SDQJMGP)](https://codecov.io/gh/gibahjoe/openapi-generator-dart)

### Do not forget to give a star or like if you like this library.

Expand Down
Loading

0 comments on commit d586573

Please sign in to comment.