feat: implement CI/CD with testing and building
This commit is contained in:
parent
d726680b79
commit
1ca0f730c2
23
.github/workflows/firebase-hosting-merge.yml
vendored
23
.github/workflows/firebase-hosting-merge.yml
vendored
@ -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 }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user