Skip to content

Commit c2d3799

Browse files
committed
ci/cd to work with .env
1 parent 70ec3b0 commit c2d3799

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
run: ./.github/workflows/scripts/countline.py --exclude_directories test/ --exclude_files lib/custom_painters/talawa_logo.dart lib/custom_painters/language_icon.dart lib/custom_painters/whatsapp_logo.dart lib/utils/queries.dart lib/view_model/after_auth_view_models/profile_view_models/profile_page_view_model.dart lib/view_model/pre_auth_view_models/select_organization_view_model.dart lib/views/after_auth_screens/profile/profile_page.dart lib/view_model/main_screen_view_model.dart lib/views/after_auth_screens/events/create_event_page.dart lib/views/after_auth_screens/org_info_screen.dart lib/views/after_auth_screens/events/manage_volunteer_group.dart lib/views/after_auth_screens/events/create_agenda_item_page.dart lib/views/after_auth_screens/events/edit_agenda_item_page.dart lib/utils/event_queries.dart
5757
- name: Check for presence of ignore directives corresponding to custom lints
5858
run: chmod +x ./.github/workflows/scripts/check_ignore.py
59+
- name: Copy .env.example to .env
60+
run: cp .env.example .env
5961
- name: Run check_ignore
6062
run: |
6163
if [[ -n "$(git status --porcelain pubspec.lock)" ]]; then
@@ -233,6 +235,8 @@ jobs:
233235
with:
234236
flutter-version: "3.29.3"
235237
channel: "stable" # or: 'beta', 'dev' or 'master'
238+
- name: Copy .env.example to .env
239+
run: cp .env.example .env
236240
- name: Running pub get to fetch dependencies
237241
run: flutter pub get
238242
- name: Codebase testing
@@ -264,6 +268,8 @@ jobs:
264268
with:
265269
flutter-version: "3.29.3"
266270
channel: "stable" # or: 'beta', 'dev' or 'master'
271+
- name: Copy .env.example to .env
272+
run: cp .env.example .env
267273
- name: Running pub get to fetch dependencies
268274
run: flutter pub get
269275
- name: Building for android
@@ -280,6 +286,8 @@ jobs:
280286
flutter-version: "3.29.3"
281287
channel: "stable" # or: 'beta', 'dev' or 'master'
282288
architecture: x64
289+
- name: Copy .env.example to .env
290+
run: cp .env.example .env
283291
- name: Building for ios
284292
run: flutter build ios --release --no-codesign
285293

.github/workflows/push.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
uses: actions/setup-python@v5
5252
- name: Check for presence of ignore directives corresponding to custom lints
5353
run: chmod +x ./.github/workflows/scripts/check_ignore.py
54+
- name: Copy .env.example to .env
55+
run: cp .env.example .env
5456
- name: Run check_ignore
5557
run: |
5658
if [[ -n "$(git status --porcelain pubspec.lock)" ]]; then
@@ -93,6 +95,8 @@ jobs:
9395
with:
9496
flutter-version: "3.29.3"
9597
channel: "stable" # or: 'beta', 'dev' or 'master'
98+
- name: Copy .env.example to .env
99+
run: cp .env.example .env
96100
- name: Running pub get in talawa_lint
97101
run: cd talawa_lint && flutter pub get && cd ..
98102
- name: Running pub get to fetch dependencies
@@ -125,6 +129,8 @@ jobs:
125129
with:
126130
flutter-version: "3.29.3"
127131
channel: "stable" # or: 'beta', 'dev' or 'master'
132+
- name: Copy .env.example to .env
133+
run: cp .env.example .env
128134
- name: Running pub get in talawa_lint
129135
run: cd talawa_lint && flutter pub get && cd ..
130136
- name: Running pub get to fetch dependencies
@@ -159,6 +165,8 @@ jobs:
159165
flutter-version: "3.29.3"
160166
channel: "stable" # or: 'beta', 'dev' or 'master'
161167
architecture: x64
168+
- name: Copy .env.example to .env
169+
run: cp .env.example .env
162170
- name: Building for ios
163171
run: flutter build ios --release --no-codesign
164172
# '--no-codesign' is used for building without code signing.

0 commit comments

Comments
 (0)