-
Notifications
You must be signed in to change notification settings - Fork 253
56 lines (54 loc) · 1.32 KB
/
ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
push:
branches:
- main
defaults:
run:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
permissions: read-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- uses: actions/checkout@v4
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap the project
run: melos bootstrap
- name: Check the formatting of one or more Dart files
run: melos format --output none --set-exit-if-changed
- name: Analyze the project's Dart code
run: melos analyze --fatal-infos
- name: Invertase Analyze
uses: invertase/github-action-dart-analyzer@v3
with:
fatal-infos: true
fatal-warnings: true
working-directory: ./packages
test:
name: "Test"
needs: analyze
runs-on: ubuntu-latest
steps:
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- uses: actions/checkout@v4
- name: Install Melos
run: dart pub global activate melos
- name: Bootstrap the project
run: melos bootstrap
- name: Run tests
run: melos test
env:
CI: true