feat: implement CI/CD with testing and building

This commit is contained in:
sBubshait 2025-07-16 15:04:12 +03:00
parent d726680b79
commit 1ca0f730c2

View File

@ -10,9 +10,26 @@ jobs:
build_and_deploy: build_and_deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout code
- run: flutter build web uses: actions/checkout@v3
- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.0'
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test
- name: Build Flutter Web
run: flutter build web --release
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with: with:
repoToken: ${{ secrets.GITHUB_TOKEN }} repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WESALAPP_BC676 }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WESALAPP_BC676 }}