-
Notifications
You must be signed in to change notification settings - Fork 568
40 lines (34 loc) · 1.04 KB
/
dartpad_shared.yml
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
name: package:dartpad_shared
permissions: read-all
on:
push:
branches: [ main ]
paths:
- '.github/workflows/dartpad_shared.yml'
- 'pkgs/dartpad_shared/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/dartpad_shared.yml'
- 'pkgs/dartpad_shared/**'
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/dartpad_shared/
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff
- name: Ensure Dart tool is setup and check version
run: dart --version
- name: Install dart dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Regenerate model classes
run: dart run build_runner build --delete-conflicting-outputs
- name: Analyze project source
run: dart analyze --fatal-infos