-
Notifications
You must be signed in to change notification settings - Fork 38
55 lines (48 loc) · 1.39 KB
/
main.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
name: CI
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+
pull_request:
merge_group:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
FLUTTER_VERSION: 3.10.6
DART_VERSION: 3.0.6
jobs:
# because there is no easy way to pass env variables to jobs
versions:
runs-on: ubuntu-latest
outputs:
flutter_version: ${{ steps.flutterver.outputs.FLUTTER_VERSION }}
dart_version: ${{ steps.dartver.outputs.DART_VERSION }}
steps:
- id: flutterver
run: echo "FLUTTER_VERSION=${{ env.FLUTTER_VERSION }}" >> "$GITHUB_OUTPUT"
- id: dartver
run: echo "DART_VERSION=${{ env.DART_VERSION }}" >> "$GITHUB_OUTPUT"
dart:
permissions:
contents: read
uses: famedly/frontend-ci-templates/.github/workflows/dart.yml@main
needs: [versions]
with:
flutter_version: ${{ needs.versions.outputs.flutter_version }}
dart_version: ${{ needs.versions.outputs.dart_version }}
secrets:
ssh_key: "${{ secrets.CI_SSH_PRIVATE_KEY }}"
general:
permissions:
contents: read
uses: famedly/frontend-ci-templates/.github/workflows/general.yml@main
app_jobs:
secrets: inherit
uses: ./.github/workflows/app.yml
needs: [versions]
with:
flutter_version: ${{ needs.versions.outputs.flutter_version }}
dart_version: ${{ needs.versions.outputs.dart_version }}