Skip to content

Commit 5ede802

Browse files
authored
Merge branch 'develop' into develop
2 parents 101ccb3 + a42c7c8 commit 5ede802

File tree

144 files changed

+2205
-1141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+2205
-1141
lines changed

.github/workflows/build-firebase.yaml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
name: build firebase
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the develop branch
5+
on:
6+
workflow_dispatch:
7+
8+
push:
9+
tags:
10+
- "firebase-v[0-9]+.[0-9]+.[0-9]+*"
11+
branches: [develop, main]
12+
paths:
13+
- "flutter_cache_manager_firebase/**"
14+
- ".github/workflows/**"
15+
pull_request:
16+
branches: [develop, main]
17+
paths:
18+
- "flutter_cache_manager_firebase/**"
19+
- ".github/workflows/**"
20+
21+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22+
jobs:
23+
format:
24+
name: Format
25+
26+
# The type of runner that the job will run on
27+
runs-on: ubuntu-latest
28+
29+
env:
30+
source-directory: ./flutter_cache_manager_firebase
31+
32+
# Steps represent a sequence of tasks that will be executed as part of the job
33+
steps:
34+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35+
- uses: actions/checkout@v4
36+
37+
# Make sure the stable version of Flutter is available
38+
- name: Set up Flutter
39+
uses: subosito/flutter-action@v2
40+
with:
41+
channel: "stable"
42+
architecture: x64
43+
cache: true
44+
45+
# Download all Flutter packages
46+
- name: Download dependencies
47+
run: flutter pub get
48+
working-directory: ${{env.source-directory}}
49+
50+
# Run Flutter Format to ensure formatting is valid
51+
- name: Run Flutter Format
52+
run: dart format --set-exit-if-changed .
53+
working-directory: ${{env.source-directory}}
54+
55+
analyze:
56+
name: Analyze
57+
58+
# The type of runner that the job will run on
59+
runs-on: ubuntu-latest
60+
61+
env:
62+
source-directory: ./flutter_cache_manager_firebase
63+
64+
# Steps represent a sequence of tasks that will be executed as part of the job
65+
steps:
66+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
67+
- uses: actions/checkout@v4
68+
69+
# Make sure the stable version of Flutter is available
70+
- name: Set up Flutter
71+
uses: subosito/flutter-action@v2
72+
with:
73+
channel: "stable"
74+
architecture: x64
75+
cache: true
76+
77+
# Download all Flutter packages
78+
- name: Download dependencies
79+
run: flutter pub get
80+
working-directory: ${{env.source-directory}}
81+
82+
# Run Flutter Analyzer
83+
- name: Run Flutter Analyzer
84+
run: flutter analyze
85+
working-directory: ${{env.source-directory}}
86+
87+
tests:
88+
name: Unit-tests
89+
# The type of runner that the job will run on
90+
runs-on: ubuntu-latest
91+
92+
env:
93+
source-directory: ./flutter_cache_manager_firebase
94+
95+
# Steps represent a sequence of tasks that will be executed as part of the job
96+
steps:
97+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
98+
- uses: actions/checkout@v4
99+
100+
# Make sure the stable version of Flutter is available
101+
- name: Set up Flutter
102+
uses: subosito/flutter-action@v2
103+
with:
104+
channel: "stable"
105+
architecture: x64
106+
cache: true
107+
108+
# Download all Flutter packages
109+
- name: Download dependencies
110+
run: flutter pub get
111+
working-directory: ${{env.source-directory}}
112+
113+
# Run all unit-tests with code coverage
114+
# - name: Run unit tests
115+
# run: flutter test --coverage
116+
# working-directory: ${{env.source-directory}}
117+
118+
# # Upload code coverage information
119+
# - uses: codecov/codecov-action@v4
120+
# env:
121+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
122+
# with:
123+
# files: ${{env.source-directory}}/coverage/lcov.info
124+
# name: CacheManager
125+
# fail_ci_if_error: true
126+
127+
publish_cache_manager_firebase:
128+
if: ${{ github.ref_type == 'tag' }}
129+
name: Publish Cache Manager Firebase
130+
permissions:
131+
id-token: write
132+
needs: [format, analyze, tests]
133+
# The type of runner that the job will run on
134+
runs-on: ubuntu-latest
135+
136+
env:
137+
source-directory: ./flutter_cache_manager_firebase
138+
139+
# Steps represent a sequence of tasks that will be executed as part of the job
140+
steps:
141+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
142+
- uses: actions/checkout@v4
143+
144+
- name: Set up Dart
145+
uses: dart-lang/setup-dart@v1
146+
147+
# Make sure the stable version of Flutter is available
148+
- name: Set up Flutter
149+
uses: subosito/flutter-action@v2
150+
with:
151+
channel: "stable"
152+
architecture: x64
153+
cache: true
154+
155+
# Download all Flutter packages
156+
- name: Download dependencies
157+
run: flutter pub get
158+
working-directory: ${{env.source-directory}}
159+
160+
# Publish the package
161+
- name: Publish package
162+
run: dart pub publish -v -f
163+
working-directory: ${{env.source-directory}}

0 commit comments

Comments
 (0)