Skip to content

Reformat with latest formatter updates and fixes (#13533) #98

Reformat with latest formatter updates and fixes (#13533)

Reformat with latest formatter updates and fixes (#13533) #98

Workflow file for this run

name: Dart code
on:
push:
branches:
- main
paths:
- '**/*.dart'
- '**/pubspec.yaml'
- '**/pubspec.lock'
- '**/analysis_options.yaml'
- 'examples/**'
- 'packages/**'
- 'tool/dash_site/**'
- '.github/workflows/dart.yml'
pull_request:
branches:
- main
paths:
- '**/*.dart'
- '**/pubspec.yaml'
- '**/pubspec.lock'
- '**/analysis_options.yaml'
- 'examples/**'
- 'packages/**'
- 'tool/dash_site/**'
- '.github/workflows/dart.yml'
schedule:
- cron: '0 0 * * 0'
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
name: Analyze and test Dart (${{ matrix.name }})
runs-on: ubuntu-latest
if: github.repository == 'flutter/website'
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: "Beta channel"
branch: beta
experimental: false
- name: "Stable channel"
branch: stable
experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
with:
channel: ${{ matrix.branch }}
- name: Fetch Dart dependencies
run: dart pub get
continue-on-error: ${{ matrix.experimental }}
# Disabled for now due to non-language versioned formatting changes.
# TODO(parlough): Revisit this once standardized on 3.13 beta or newer.
# - name: Check Dart code formatting
# run: dart run dash_site format-dart --check
# continue-on-error: ${{ matrix.experimental }}
- name: Analyze Dart code
run: dart run dash_site analyze-dart
continue-on-error: ${{ matrix.experimental }}
- name: Run Dart tests
run: dart run dash_site test-dart
continue-on-error: ${{ matrix.experimental }}