Skip to content

Add safe fallback

Add safe fallback #95

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
check-format:
name: Check format using flutter format
runs-on: ubuntu-latest
container: ghcr.io/cirruslabs/flutter:stable
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install melos
run: |
flutter pub global activate melos
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
echo "$HOME/AppData/Local/Pub/Cache/bin" >> $GITHUB_PATH
- name: Initialize workspace
run: melos bootstrap
- name: Check format
run: melos format --output none --set-exit-if-changed
lint:
name: Lint
runs-on: ubuntu-latest
container: ghcr.io/cirruslabs/flutter:stable
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install melos
run: |
flutter pub global activate melos
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
echo "$HOME/AppData/Local/Pub/Cache/bin" >> $GITHUB_PATH
- name: Initialize workspace
run: melos bootstrap
- name: Lint using flutter analyze
run: melos analyze