forked from ably/ably-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 834 Bytes
/
check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on:
pull_request:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.x'
cache: true
# This step requires fetch of test_integration packages because flutter format and
# flutter analyze check test_integration package too
- name: 'Install dependencies'
run: |
flutter pub get
cd test_integration && flutter pub get
- name: 'Check formatting issues in the code'
run: flutter format --set-exit-if-changed .
- name: 'Statically analyze the Dart code for any errors'
run: 'flutter analyze --no-pub .'
- name: 'Run unit tests'
run: flutter test --no-pub