This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
Update build_and_test.yml #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To build and test a Flutter application whenever changes are | |
# pushed to the main branch. | |
name: Multi-Platform Build and Test | |
on: | |
push: | |
branches: | |
- main | |
- aadi | |
- gaga | |
- nidhi | |
jobs: | |
build_android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
- run: flutter pub get | |
- run: flutter build apk # Build the APK for Android | |
build_ios: | |
runs-on: macos-latest # iOS builds need to run on macOS | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
- run: flutter pub get | |
- run: flutter build ios --no-codesign # Build for iOS without code signing | |
build_web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
- run: flutter pub get | |
- run: flutter build web # Build for Web | |
test: | |
needs: [build_android, build_ios, build_web] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
- run: flutter pub get | |
- run: flutter test # Run tests |