Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahil03x committed Dec 23, 2024
1 parent 11441f4 commit eb7674b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/update_goldens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,38 @@ jobs:
update_goldens:
runs-on: ubuntu-latest
steps:
- name: Ensure branch is not master
- name: 🚫 Ensure branch is not master
if: ${{ github.event.inputs.branch == 'master' || github.event.inputs.branch == 'origin/master'}}
run: exit 1
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
- 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: 📦 Install Tools
run: flutter pub global activate melos

- name: "Bootstrap Workspace"
- name: 🔧 Bootstrap Workspace
run: melos bootstrap --verbose

- name: Update Goldens
- name: 🖼️ Update Goldens
working-directory: packages/stream_chat_flutter
continue-on-error: true
run: |
flutter test --tags golden --update-goldens
- name: Commit Changes
- name: 📤 Commit Changes
id: commit_changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down

0 comments on commit eb7674b

Please sign in to comment.