chore(main): release 2.0.0-alpha.7 #100
Workflow file for this run
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
name: CI - Pull Request | |
on: | |
pull_request_target: | |
# Pull Request Runs on the same branch will be cancelled | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
channel: stable | |
flutter-version: 3.24.x # TODO UX-1347 | |
- uses: ZebraDevs/flutter-code-quality@main | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
run-coverage: false | |
check-secret: | |
runs-on: ubuntu-latest | |
outputs: | |
secret-exists: ${{ steps.check.outputs.defined }} | |
steps: | |
- name: Check PR can access secrets | |
id: check | |
run: | | |
echo "defined=true" >> $GITHUB_OUTPUT; | |
if [ "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZDS_FLUTTER }}" == '' ]; then | |
echo "defined=false" >> $GITHUB_OUTPUT; | |
fi | |
deploy-preview: | |
name: Deploy example app preview on firebase | |
needs: [code-quality, check-secret] | |
if: needs.check-secret.outputs.secret-exists == 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
ref: ${{ github.head_ref }} | |
- uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
channel: stable | |
flutter-version: 3.24.x # TODO UX-1347 | |
- name: Setup flutter | |
run: flutter pub get | |
- name: Build example app | |
run: | | |
cd example | |
flutter build web -o ../build --no-tree-shake-icons | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZDS_FLUTTER }}" | |
channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}" |