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 d125390
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/mason_logger.yaml
Expand Up @@ -36,8 +36,17 @@ jobs:
- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings .

- name: Verify CI
run: dart example/test.dart
- name: Verify CI Behavior
run: |
dart test/ci.dart >> ci.txt
actual="ci.txt"
expected="test/fixtures/ci.txt"
if cmp -s "$actual" "$expected"; then
echo "PASSED"
else
echo "FAILED"
exit 1
fi
- name: Run Tests
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 d125390

Please sign in to comment.