-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (43 loc) · 1.46 KB
/
main.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
49
50
name: Build and test main app
on:
pull_request:
push:
branches:
- main
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
jobs:
read_flutter_version:
runs-on: ubuntu-latest
outputs:
flutter_version: ${{ steps.read.outputs.flutter_version }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Read Flutter version
id: read
run: |
echo "flutter_version=$(cat .github/configs/flutter_version)" >> $GITHUB_OUTPUT
semantic_pull_request:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
build_and_test:
needs: [ read_flutter_version ]
uses: broxus/flutter_templates/.github/workflows/run-melos.yaml@v3
secrets: inherit
with:
runner: macos-latest
flutter_version: ${{ needs.read_flutter_version.outputs.flutter_version }}
# integration tests are empty now
# ios_integration_test:
# uses: broxus/flutter_templates/.github/workflows/ios-integration-test.yaml@v2
# with:
# target: lib/main_development.dart
# build-before-test: true
# flutter_version: ${{ needs.read_flutter_version.outputs.flutter_version }}
# android_integration_test:
# needs: [read_flutter_version]
# uses: broxus/flutter_templates/.github/workflows/android-integration-test.yaml@v2
# with:
# codegen: true
# flutter_version: ${{ needs.read_flutter_version.outputs.flutter_version }}