Skip to content

Commit

Permalink
Updated CI/CD and Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gemechis-elias authored Nov 28, 2024
1 parent 92ad83e commit d198598
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/flutter_integration_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Run Flutter Integration Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Run Integration Tests
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Set up Flutter
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.3'

# Step 3: Install dependencies
- name: Install dependencies
run: flutter pub get

# Step 4: Run integration tests
- name: Run integration test
env:
FIREBASE_AUTH_EMULATOR_HOST: localhost:9099 # Example for Firebase emulator (if needed)
run: flutter test integration_test/test.dart

# Step 5: Collect test results
- name: Upload test results
if: failure() # Upload test results only if tests fail
uses: actions/upload-artifact@v3
with:
name: test-results
path: build/test-results/

0 comments on commit d198598

Please sign in to comment.