forked from fossasia/pslab-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
29 lines (24 loc) · 684 Bytes
/
Copy pathaction.yml
File metadata and controls
29 lines (24 loc) · 684 Bytes
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
name: "Common Workflow"
runs:
using: "composite"
steps:
- name: Set up Flutter
if: runner.os != 'macOS' # TODO remove after https://github.com/actions/runner/issues/449 is fixed
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version-file: .flutter-version
- name: Fetch Flutter Dependencies
shell: bash
run: |
flutter pub get
dart format lib/l10n/
- name: Validate Code Format
shell: bash
run: dart format --output=none --set-exit-if-changed .
- name: Analyze Code
shell: bash
run: flutter analyze
- name: Run tests
shell: bash
run: flutter test