Skip to content

Commit eb09638

Browse files
committed
Cleaned up the Github Workflows YAML.
1 parent 17056ee commit eb09638

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
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

0 commit comments

Comments
 (0)