From 5a1e5b5b65c465120e9669bf816a19759b69e712 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Sun, 8 Mar 2026 16:37:59 -0400 Subject: [PATCH] ci: add CI badge to README, restructure CI with separate format job and --fatal-infos --- .github/workflows/ci.yml | 15 +++++++++++++-- README.md | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c1b873..380dbf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 284a4c7..009bb88 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # moon_sighting [![pub package](https://img.shields.io/pub/v/moon_sighting.svg)](https://pub.dev/packages/moon_sighting) +[![CI](https://github.com/acamarata/moon-sighting-dart/actions/workflows/ci.yml/badge.svg)](https://github.com/acamarata/moon-sighting-dart/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](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.