This repository includes a GitHub Actions pipeline that automatically runs on pull requests and pushes to the main/master branch.
- Analyze code - Runs
flutter analyzeto check for code quality issues - Run tests - Runs
flutter testto execute all unit tests
- Analyze and Test - Same as pull requests
- Build - Builds the Flutter web app in debug mode
- Deploy - Deploys to Firebase Hosting
To enable the deployment step, you need to configure a Firebase service account secret:
- Go to the Firebase Console
- Select your project (angryraphi)
- Go to Project Settings > Service Accounts
- Click "Generate New Private Key"
- Save the downloaded JSON file
- Go to your repository on GitHub
- Navigate to Settings > Secrets and variables > Actions
- Click "New repository secret"
- Name:
FIREBASE_SERVICE_ACCOUNT - Value: Paste the entire content of the JSON file you downloaded
- Click "Add secret"
You can view the status of pipeline runs in the "Actions" tab of your GitHub repository.
The workflow configuration is located at .github/workflows/ci-cd.yml
- The pipeline runs on both
mainandmasterbranches - Deployment only happens on push to main/master, not on pull requests
- The Flutter version used is 3.27.1 (stable channel)
- The build uses canvaskit renderer for better performance
- Debug builds are deployed to allow for easier debugging in production