Skip to content

Commit

Permalink
add ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Oct 30, 2022
1 parent 43bf764 commit c05781e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/mason_logger.yaml
Expand Up @@ -36,9 +36,6 @@ jobs:
- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings .

- name: Verify CI
run: dart example/test.dart

- name: Run Tests
run: |
dart pub global activate coverage 1.2.0
Expand All @@ -49,6 +46,18 @@ jobs:
with:
path: packages/mason_logger/coverage/lcov.info

- name: Verify CI Behavior
run: |
dart test/ci.dart >> ci.txt
file1="ci.txt"
file2="test/fixtures/ci.txt"
if cmp -s "$file1" "$file2"; then
echo "PASSED"
else
echo "FAILED"
exit 1
fi
pana:
defaults:
run:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions packages/mason_logger/test/fixtures/ci.txt
@@ -0,0 +1 @@
⠋ Calculating...⠙ This is taking longer than expected... (1.0s)⠹ Almost done... (2.0s)✓ Done (3.0s)
Expand Down

0 comments on commit c05781e

Please sign in to comment.