Skip to content

Commit cc65e5f

Browse files
Merge branch 'fluttercommunity:master' into master
2 parents 5319cf9 + 9261f8b commit cc65e5f

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
name: CI
22

33
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
47
push:
58
branches:
6-
- master
7-
pull_request:
9+
- master
10+
paths-ignore:
11+
- '**.md'
812
workflow_dispatch:
913

1014
jobs:
1115
check-format:
12-
name: Check format using flutter format .
16+
name: Check format using flutter format.
1317
runs-on: ubuntu-latest
1418

1519
steps:
1620
- name: Checkout code
1721
uses: actions/checkout@v2
18-
- uses: subosito/flutter-action@v1
19-
with:
20-
channel: beta
22+
- name: Flutter Action
23+
uses: subosito/flutter-action@v2
2124
- name: Check format
22-
run: flutter format -n . --set-exit-if-changed
25+
run: flutter format . --set-exit-if-changed
2326

2427
lint:
2528
name: Lint
@@ -28,14 +31,15 @@ jobs:
2831
steps:
2932
- name: Checkout code
3033
uses: actions/checkout@v2
31-
- uses: subosito/flutter-action@v1
32-
with:
33-
channel: beta
34+
- name: Flutter Action
35+
uses: subosito/flutter-action@v2
36+
- name: Install Package Dependencies
37+
run: flutter packages get
3438
- name: Get dependencies for example
3539
run: flutter pub get
3640
working-directory: example
3741
- name: Lint using flutter analyze
38-
run: flutter analyze
42+
run: flutter analyze .
3943

4044
# test:
4145
# name: Test2

example/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:lint/analysis_options_package.yaml
1+
include: package:flutter_lints/flutter.yaml
22

33
analyzer:
44
strong-mode:

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
dev_dependencies:
1616
flutter_test:
1717
sdk: flutter
18-
lint: ^1.8.2
18+
flutter_lints: ^2.0.1
1919

2020
# For information on the generic Dart part of this file, see the
2121
# following page: https://www.dartlang.org/tools/pub/pubspec

0 commit comments

Comments
 (0)