Skip to content

Fix lints for Dart 3.3.0 #50

Fix lints for Dart 3.3.0

Fix lints for Dart 3.3.0 #50

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 exec -- dart 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 exec -- flutter analyze