Skip to content

Commit

Permalink
show warnings from "dart run test"
Browse files Browse the repository at this point in the history
  • Loading branch information
numen31337 committed Feb 26, 2023
1 parent c73c1af commit f0d4ae3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ jobs:
uses: zgosalvez/github-actions-analyze-dart@v1

- name: Run tests
run: dart run test
run: |
warning_msg=`dart run test`
warning_formatted=${warning_msg//$'\n'/}
if [[ $warning_formatted =~ "Warning" ]]; then
echo $warning_msg
echo -n "::warning ::$warning_formatted"
fi
- name: Check formatting
run: dart format --set-exit-if-changed ../
Expand Down Expand Up @@ -94,10 +100,10 @@ jobs:
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
relativePath: copy_with_extension

- name: Check Files Are in Sync
if: matrix.sdk == 'stable' && matrix.os == 'ubuntu-latest'
run: |
cmp -s example/example.dart ../copy_with_extension/example/example.dart || (echo "::error ::File example.dart is out of sync" && exit 1)
cmp -s LICENSE ../copy_with_extension/LICENSE || (echo "::error ::File LICENSE is out of sync" && exit 1)
cmp -s CHANGELOG.md ../copy_with_extension/CHANGELOG.md || (echo "::warning ::File CHANGELOG.md is out of sync")
cmp -s CHANGELOG.md ../copy_with_extension/CHANGELOG.md || (echo "::warning ::File CHANGELOG.md is out of sync")

0 comments on commit f0d4ae3

Please sign in to comment.