-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.09 KB
/
project-ci.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
48
name: Project CI
on:
pull_request:
types: [opened, synchronize]
paths:
- "packages/**/lib/**"
- "packages/**/test/**"
- "pubspec.yaml"
push:
branches:
- main
paths:
- "packages/**/lib/**"
- "packages/**/test/**"
- "pubspec.yaml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
project-ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "21"
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.0"
channel: "stable"
cache: true
- name: Install Flutter library
run: flutter pub get
- name: Install Melos
run: dart pub global activate melos
- name: Set up the project and run the test
run: melos bootstrap
- name: Analyze
run: melos analyze