mirror of
https://github.com/acamarata/moon-sighting-dart.git
synced 2026-06-30 19:04:23 +00:00
ci: add CI badge to README, restructure CI with separate format job and --fatal-infos
This commit is contained in:
parent
1817253631
commit
5a1e5b5b65
2 changed files with 14 additions and 2 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
|
@ -8,22 +8,33 @@ on:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
name: Test (Dart ${{ matrix.dart-version }})
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
sdk: [stable, beta]
|
||||
dart-version: [stable, beta]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
sdk: ${{ matrix.sdk }}
|
||||
sdk: ${{ matrix.dart-version }}
|
||||
- run: dart pub get
|
||||
- run: dart analyze --fatal-infos
|
||||
- run: dart test
|
||||
|
||||
format:
|
||||
name: Format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
sdk: stable
|
||||
- run: dart pub get
|
||||
- run: dart format --set-exit-if-changed .
|
||||
|
||||
publish-check:
|
||||
name: Publish Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
# moon_sighting
|
||||
|
||||
[](https://pub.dev/packages/moon_sighting)
|
||||
[](https://github.com/acamarata/moon-sighting-dart/actions/workflows/ci.yml)
|
||||
[](LICENSE)
|
||||
|
||||
Lunar crescent visibility for Dart and Flutter. Computes moon phase, topocentric position, illumination, and Yallop/Odeh crescent visibility criteria using Meeus algorithms. Zero dependencies.
|
||||
|
|
|
|||
Loading…
Reference in a new issue