mirror of
https://github.com/acamarata/moon-sighting-dart.git
synced 2026-07-03 12:10:44 +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:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
name: Test (Dart ${{ matrix.dart-version }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
sdk: [stable, beta]
|
dart-version: [stable, beta]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dart-lang/setup-dart@v1
|
- uses: dart-lang/setup-dart@v1
|
||||||
with:
|
with:
|
||||||
sdk: ${{ matrix.sdk }}
|
sdk: ${{ matrix.dart-version }}
|
||||||
- run: dart pub get
|
- run: dart pub get
|
||||||
- run: dart analyze --fatal-infos
|
- run: dart analyze --fatal-infos
|
||||||
- run: dart test
|
- 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 pub get
|
||||||
- run: dart format --set-exit-if-changed .
|
- run: dart format --set-exit-if-changed .
|
||||||
|
|
||||||
publish-check:
|
publish-check:
|
||||||
|
name: Publish Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
# moon_sighting
|
# moon_sighting
|
||||||
|
|
||||||
[](https://pub.dev/packages/moon_sighting)
|
[](https://pub.dev/packages/moon_sighting)
|
||||||
|
[](https://github.com/acamarata/moon-sighting-dart/actions/workflows/ci.yml)
|
||||||
[](LICENSE)
|
[](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.
|
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