Skip to content

Update publish.yml

Update publish.yml #51

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Run linter and analyze
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter --version
- name: Run flutter pub get
run: flutter pub get
- name: Verify formatting
run: dart format . --set-exit-if-changed
- name: Analyze project source
run: dart analyze --fatal-infos --fatal-warnings