Skip to content

Commit

Permalink
Update pub dependencies and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rkishan516 committed Dec 19, 2024
1 parent beaa828 commit c0565fb
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 401 deletions.
296 changes: 0 additions & 296 deletions .dart_tool/package_config.json

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: dart-lang/setup-dart@v1
with:
channel: stable
- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Install dependencies
run: dart pub get
- name: Check format
run: dart format --set-exit-if-changed .
- name: Analyze
run: dart analyze
- name: Run tests
run: |
dart pub global activate coverage
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --check-ignore
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: coverage/locv.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dart_tool/
build/
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.2.0

* Update pub dependencies
* Update docs
* Add codecov support

## 0.1.0+1

* Initial experimentation
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

A simple dependency injection library built on Zones.

[![codecov](https://codecov.io/gh/rkishan516/scoped_zone/graph/badge.svg?token=XT56ZX5NL5)](https://codecov.io/gh/rkishan516/scoped_zone)

<a href="https://pub.dev/packages/scoped_zone" target="_blank">
<img src="https://img.shields.io/pub/v/scoped_zone.svg?style=for-the-badge&label=pub&logo=dart"/>
</a>
<a href="https://github.com/rkishan516/scoped_zone/tree/main/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/rkishan516/scoped_zone.svg?style=for-the-badge&color=purple"/>
</a>
<a href="https://github.com/rkishan516/scoped_zone/stargazers" target="_blank">
<img src="https://img.shields.io/github/stars/rkishan516/scoped_zone.svg?style=for-the-badge&label=GitHub Stars&color=gold"/>
</a>
<br/>
<a href="https://pub.dev/packages/scoped_zone/score" target="_blank">
<img src="https://img.shields.io/pub/likes/scoped_zone.svg?style=for-the-badge&color=1e7b34&label=likes&labelColor=black"/>
<img src="https://img.shields.io/pub/points/scoped_zone?style=for-the-badge&color=0056b3&label=Points&labelColor=black"/>
<img src="https://img.shields.io/pub/popularity/scoped_zone.svg?style=for-the-badge&color=c05600&label=Popularity&labelColor=black"/>
</a>

## Quick Start

```dart
Expand Down
20 changes: 0 additions & 20 deletions coverage_badge.svg

This file was deleted.

Loading

0 comments on commit c0565fb

Please sign in to comment.