diff --git a/.github/workflows/messages.yml b/.github/workflows/messages.yml index 65a85b34..60923f0d 100644 --- a/.github/workflows/messages.yml +++ b/.github/workflows/messages.yml @@ -27,12 +27,17 @@ jobs: include: - sdk: stable run-tests: true + dependencies: [path, published] + steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: sdk: ${{matrix.sdk}} + - run: dart run ../../tools/delete_pubspec_overrides.dart + if: ${{ matrix.dependencies == 'published' }} + - run: dart pub get - run: (cd example_json; dart pub get) diff --git a/tools/delete_pubspec_overrides.dart b/tools/delete_pubspec_overrides.dart new file mode 100644 index 00000000..5ae2ff79 --- /dev/null +++ b/tools/delete_pubspec_overrides.dart @@ -0,0 +1,6 @@ +import 'dart:io'; + +void main(List arguments) => Directory.current + .list(recursive: true) + .where((f) => f.path.endsWith('pubspec_overrides.yaml')) + .forEach((f) => f.deleteSync());