forked from DonutWare/Fladder
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.06 KB
/
Copy pathchecks.yaml
File metadata and controls
42 lines (35 loc) · 1.06 KB
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
name: Flutter checks
on:
pull_request:
branches:
- develop
workflow_dispatch:
jobs:
linting:
name: Linting & Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Fetch version info
run: |
# Extract flutter_version from .fvmrc
FLUTTER_VERSION=$(jq -r '.flutter' .fvmrc)
echo "FLUTTER_VERSION=${FLUTTER_VERSION}" >> "$GITHUB_ENV"
shell: bash
- name: Set up Flutter
uses: subosito/flutter-action@v2.16.0
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
- name: Get dependencies
run: flutter pub get
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Analyze Dart
uses: invertase/github-action-dart-analyzer@v3
with:
custom-lint: true