Skip to content

Commit

Permalink
Run flutter analyzer on ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Jan 19, 2020
1 parent 9cc46c4 commit f693022
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
host: macos-latest
cross: false

- target: x86_64-pc-windows-msvc
host: windows-latest
cross: false
#- target: x86_64-pc-windows-msvc
# host: windows-latest
# cross: false

- target: armv7-linux-androideabi
host: ubuntu-latest
cross: true
- target: aarch64-linux-android
host: ubuntu-latest
cross: true
# TODO linking fails, not been able to reproduce locally yet

#- target: i686-linux-android
# host: ubuntu-latest
# cross: true
Expand Down Expand Up @@ -91,19 +91,19 @@ jobs:
- name: Build
run: cargo flutter --quiet build --target ${{ matrix.platform.target }}

- name: Test
- name: Rust tests
if: matrix.platform.cross == false
run: cargo flutter --quiet test

- name: Flutter test
- name: Flutter tests
if: matrix.platform.cross == false
run: flutter test

- name: Flutter driver tests
if: matrix.platform.cross == false
run: cargo flutter --dart-main test_driver/app.dart --drive run
#- name: Flutter driver tests
# if: matrix.platform.cross == false
# run: cargo flutter --dart-main test_driver/app.dart --drive run

lint:
lint-rust:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -127,10 +127,22 @@ jobs:
- name: cargo clippy
run: cargo clippy -- -D warnings

lint-flutter:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install flutter
uses: subosito/flutter-action@v1
with:
channel: stable

- name: flutter pub get
run: flutter pub get

- name: flutter format
run: flutter format --set-exit-if-changed .

- name: flutter analyze
run: flutter analyze
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
host: macos-latest
format: dmg

- target: x86_64-pc-windows-msvc
host: windows-latest
format: nsis
#- target: x86_64-pc-windows-msvc
# host: windows-latest
# format: nsis

- target: aarch64-linux-android
host: ubuntu-latest
Expand Down

0 comments on commit f693022

Please sign in to comment.