Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: initial release #2

Merged
merged 13 commits into from
Sep 19, 2023
27 changes: 22 additions & 5 deletions .github/workflows/pr_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ env:
dart_version: 2.19.2

on:
push:
branches:
- main
pull_request:
branches:
- main
- develop

jobs:
pr_validation:
Expand All @@ -18,14 +16,33 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- uses: dart-lang/setup-dart@v1
- name: Dart install
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ env.dart_version }}

- name: Pub Get
run: dart pub get

- name: Validate Version Bump
run: dart run tool/validate_version_bump.dart

- name: Format
run: dart format --set-exit-if-changed .

- name: Run Tests
run: |
dart test --coverage=coverage
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib

- name: Verify Test Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: coverage/lcov.info
min_coverage: 70

- name: Publish dry run
run: dart pub publish --dry-run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Coverage
name: Publish

env:
dart_version: 2.19.2
Expand All @@ -9,7 +9,7 @@ on:
- main

jobs:
coverage:
publish:
runs-on: ubuntu-latest
timeout-minutes: 15

Expand All @@ -25,7 +25,10 @@ jobs:
- name: Run Tests
run: |
dart test --coverage=coverage
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

- name: Publish to pub.dev
uses: dart pub publish
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"[dart]": {
"editor.rulers": [
80,
],
},
"dart.lineLength": 80,
}
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
1. testing some changelog changes
2. changelog changes
# 0.1.0

- initial release
Loading