-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.1 KB
/
checkout.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: VarioqubConfigs
on:
workflow_dispatch:
push:
pull_request:
jobs:
checkout:
name: "Checkout"
runs-on: ubuntu-latest
container:
image: plugfox/flutter:stable
defaults:
run:
working-directory: ./
timeout-minutes: 10
steps:
- name: 🚂 Get latest code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: 🚃 Cache pub modules
uses: actions/cache@v2
env:
cache-name: cache-pub-package
with:
path: |
$PWD/.pub_cache/
key: ${{ runner.os }}-pub-${{ env.cache-name }}-${{ hashFiles('**/pubspec.yaml') }}
- name: 🗄️ Export pub cache directory
run: export PUB_CACHE=$PWD/.pub_cache/
- name: 👷 Install Dependencies
timeout-minutes: 1
run: |
flutter pub get -C .
- name: 🔎 Check format
timeout-minutes: 1
run: dart format --set-exit-if-changed -l 80 -o none lib/
- name: 📈 Check analyzer
timeout-minutes: 1
run: dart analyze --fatal-infos --fatal-warnings lib/