Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
run: dart pub upgrade

- name: 🕵️ Analyze code
uses: ValentinVignal/action-dart-analyze@v1.1
uses: ValentinVignal/action-dart-analyze@v2.1
if: ${{ github.event_name == 'pull_request' }}
with:
fail-on: "format"
token: ${{ secrets.GITHUB_TOKEN }}
fail-on: "note"
fail-on-format: true
format: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: 🏜️ Publish - dry run
if: ${{ github.event_name == 'pull_request' }}
Expand All @@ -60,8 +61,5 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
run: |
sudo apt-get install webp
PANA=$(dart run pana . --no-warning)
PANA_SCORE=$(echo $PANA | sed -n "s/.*Points: \([0-9]*\)\/\([0-9]*\)./\1\/\2/p")
echo "score: $PANA_SCORE"
IFS='/' read -ra SCORE_ARR <<< "$PANA_SCORE"; SCORE=${SCORE_ARR[0]}
if (( SCORE < 160 )); then echo "Minimum score of 160 was not met! Got $SCORE."; exit 1; fi
dart pub global activate pana
dart pub global run pana . --no-warning --exit-code-threshold 0
9 changes: 1 addition & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ jobs:
run: dart pub upgrade

- name: 🧪 Run Tests
run: |
dart test --timeout=1ms --fail-fast --coverage=coverage
dart run coverage:format_coverage -l -i coverage -o coverage/lcov.info --report-on=lib

- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
with:
min_coverage: 99
run: dart run coverage:test_with_coverage --fail-under=99

- name: 💯 Upload Code Coverage
uses: codecov/codecov-action@v5.5.2
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
{
"type": "shell",
"command": "PANA=$(dart run pana . --no-warning); PANA_SCORE=$(echo $PANA | sed -n \"s/.*Points: \\([0-9]*\\)\\/\\([0-9]*\\)./\\1\\/\\2/p\"); echo \"score: $PANA_SCORE\"; IFS='/' read -ra SCORE_ARR <<< \"$PANA_SCORE\"; SCORE=${SCORE_ARR[0]}; if (( SCORE < 160 )); then echo \"Minimum score of 160 was not met! Got $SCORE.\"; exit 1; fi",
"command": "dart pub global run pana . --no-warning --exit-code-threshold 0",
"label": "PANA Score Check"
},
{
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ApiClient {
}
```

#### New Features
#### New Capabilities in v3.0.0

- New `mapToRegisteredStatusCodeOrNull` method added!

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2025, Roman Cinis
Copyright (c) 2026, Roman Cinis

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
Loading