-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.02 KB
/
pull_requests.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: Pull Requests
on:
pull_request:
paths-ignore:
- "firebase/**"
- ".devcontainer/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FLUTTER_VERSION: "beta" # FIXME
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Collect Workflow Telemetry
uses: catchpoint/workflow-telemetry-action@v2
with:
comment_on_pr: false
### Set up ###
- uses: actions/checkout@v4
- uses: subosito/[email protected]
with:
channel: ${{ env.FLUTTER_VERSION }}
cache: true
cache-key: "flutter-:channel:-:version:-:hash:"
- run: |
dart pub get
dart pub run build_runner build --delete-conflicting-outputs
dart fix --apply lib
dart format --set-exit-if-changed .
dart analyze --fatal-infos .
dart run custom_lint
git diff --exit-code
### Build ###
- name: Build
run: |
flutter build web