Skip to content

Commit

Permalink
chore: prep repo for publish (#1)
Browse files Browse the repository at this point in the history
* Prep repo for publish

* Add codecov token

* Add slug

* Add Codecov badge
  • Loading branch information
btrautmann authored Mar 28, 2024
1 parent 7bf60af commit 37d1b88
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
- uses: dart-lang/setup-dart@v1

- name: Install dependencies
run: dart pub get
Expand All @@ -24,5 +24,17 @@ jobs:
- name: Analyze project source
run: dart analyze --fatal-infos --fatal-warnings .

- name: Activate coverage
run: dart pub global activate coverage

- name: Run tests
run: dart test
run: |
dart test --test-randomize-ordering-seed=random --coverage=coverage && \
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
slug: ${{ github.repository }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ and the Flutter guide for

# Beacon Settings

![CI](https://github.com/btrautmann/beacon_settings/actions/workflows/dart.yml/badge.svg)
[![codecov](https://codecov.io/gh/btrautmann/beacon_settings/graph/badge.svg?token=MXT6227EXW)](https://codecov.io/gh/btrautmann/beacon_settings)

A light-weight companion package to [state_beacon](https://pub.dev/packages/state_beacon/example) that provides a simple way to manage settings for a dart application.

## Example usage
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: beacon_settings
description: A companion package to `state_beacon` that makes it easy to manage key-value based settings.
version: 0.0.1
repository: https://github.com/btrautmann/beacon_settings

environment:
sdk: ^3.3.1
Expand Down

0 comments on commit 37d1b88

Please sign in to comment.