mirror of
https://github.com/acamarata/hijri-core-dart.git
synced 2026-06-30 18:54:27 +00:00
ci: separate format job, add --fatal-infos to dart analyze
This commit is contained in:
parent
c21c38bd90
commit
4d80918501
1 changed files with 14 additions and 3 deletions
17
.github/workflows/ci.yml
vendored
17
.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
|
- 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue