Skip to content

Commit 67b3495

Browse files
authored
fix(chore): fix copyright notice header for test_eval/ai_client.dart (#803)
1 parent 018ab02 commit 67b3495

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/flutter_packages.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ jobs:
9898
9999
echo "matrix=$JSON_MATRIX" >> $GITHUB_OUTPUT
100100
101+
copyright:
102+
runs-on: ubuntu-latest
103+
if: github.repository == 'flutter/genui'
104+
steps:
105+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
106+
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
107+
with:
108+
channel: stable
109+
cache: true
110+
- name: Install dependencies
111+
run: flutter pub get > /dev/null
112+
- name: Check copyrights
113+
run: dart tool/fix_copyright/bin/fix_copyright.dart --year 2025
114+
101115
analyze_and_test:
102116
needs: matrix
103117
# Only run if the matrix job has produced a non-empty matrix.
@@ -138,11 +152,6 @@ jobs:
138152
- name: Check formatting
139153
working-directory: ${{ matrix.package.path }}
140154
run: dart format --output=none --set-exit-if-changed .
141-
- name: Check copyrights
142-
working-directory: ${{ matrix.package.path }}
143-
run: |
144-
(cd ${{ github.workspace }}/tool/fix_copyright && dart pub upgrade) > /dev/null 2>&1
145-
dart ${{ github.workspace }}/tool/fix_copyright/bin/fix_copyright.dart --year 2025
146155
- name: Analyze code
147156
working-directory: ${{ matrix.package.path }}
148157
run: flutter analyze --fatal-infos

examples/eval/test/test_infra/ai_client.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
import 'dart:async';
26

37
import 'package:dartantic_ai/dartantic_ai.dart' as dartantic;

0 commit comments

Comments
 (0)