forked from FooStudio/tinycolor
-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (43 loc) · 1.12 KB
/
ci.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ci
on:
push:
paths-ignore:
- '**/*.md'
- '.*/**'
pull_request:
types:
- ready_for_review
- synchronize
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ github.ref }}-${{ hashFiles('pubspec.yaml') }}
- uses: subosito/flutter-action@v1
- run: flutter doctor -v
- run: flutter pub get
- run: flutter analyze --no-fatal-infos
- run: flutter test
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ github.ref }}-${{ hashFiles('pubspec.yaml') }}
- uses: subosito/flutter-action@v1
- run: flutter doctor -v
- run: flutter pub get
- run: flutter format --set-exit-if-changed --dry-run .