Skip to content

Commit

Permalink
Run tests in the CI (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim committed Sep 28, 2021
1 parent 60a8242 commit 80b502b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,26 @@ jobs:
run: |
git clone --depth=1 https://github.com/flutter/flutter.git
cd flutter
git fetch --depth=1 https://github.com/flutter/flutter.git `cat ../bin/internal/flutter.version`
git fetch --depth=1 https://github.com/flutter/flutter.git $(cat ../bin/internal/flutter.version)
git checkout FETCH_HEAD
- name: Install pub dependencies
run: flutter/bin/flutter pub get
- name: Verify formatting
run: flutter/bin/dart format --output=none --set-exit-if-changed lib
run: flutter/bin/dart format --output=none --set-exit-if-changed lib test
- name: Analyze project source
run: flutter/bin/dart analyze --fatal-infos lib
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Fetch Flutter SDK
run: |
git clone --depth=1 https://github.com/flutter/flutter.git
cd flutter
git fetch --depth=1 https://github.com/flutter/flutter.git $(cat ../bin/internal/flutter.version)
git checkout FETCH_HEAD
- name: Run tests
run: flutter/bin/flutter test

0 comments on commit 80b502b

Please sign in to comment.