-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.14 KB
/
Copy pathexample.yml
File metadata and controls
43 lines (36 loc) · 1.14 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
43
name: Example checks
# NOTE: these jobs require an `example/` app (Flutter plugin demo + no-bundling
# test harness). The repo is freshly scaffolded and `example/` is not present
# yet, so this workflow will not pass until the example app is added — it is
# intentionally in place so the checks activate the moment `example/` lands.
on:
pull_request:
branches: [main]
concurrency:
group: pr-${{ github.event.pull_request.number }}-example
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
working-directory: example
jobs:
analyze:
name: Flutter analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-flutter
with:
working-directory: example
- run: flutter --no-version-check analyze --fatal-infos .
deps:
name: Dependency validator (example)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-flutter
with:
working-directory: example
- run: dart pub global activate dependency_validator
- run: dart pub global run dependency_validator