update_goldens #6
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: update_goldens | |
on: workflow_dispatch | |
jobs: | |
update_goldens: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚫 Ensure branch is not master | |
if: ${{ github.event.inputs.branch == 'master' || github.event.inputs.branch == 'origin/master'}} | |
run: | | |
echo "Updating goldens on 'master' branch is prohibited." | |
exit 1 | |
- name: 📚 Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
- name: 🐦 Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.x" | |
channel: stable | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- name: 📦 Install Tools | |
run: flutter pub global activate melos | |
- name: 🔧 Bootstrap Workspace | |
run: melos bootstrap --verbose | |
- name: 🖼️ Update Goldens | |
working-directory: packages/stream_chat_flutter | |
continue-on-error: true | |
run: | | |
flutter test --tags golden --update-goldens | |
- name: 📤 Commit Changes | |
id: commit_changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: Update Goldens" | |
commit_user_name: github-actions[bot] | |
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com |