diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 281b8a0..3f52d87 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,8 @@ updates: directory: / schedule: interval: daily - - package-ecosystem: pub - directory: / - schedule: - interval: daily + # This creates too much PR noise; we prefer manual updates. + # - package-ecosystem: pub + # directory: / + # schedule: + # interval: daily diff --git a/.github/labeler.yml b/.github/labeler.yml index 7390760..0a32796 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -18,5 +18,20 @@ test: - changed-files: - any-glob-to-all-files: - test/** - - example/macos/RunnerTests/**/*.swift - - example/macos/RunnerUITests/**/*.swift + - example/integration_test/** + - example/macos/RunnerTests/** + - example/macos/RunnerUITests/** + - example/test/** + +dart: + - changed-files: + - any-glob-to-all-files: + - lib/**/*.dart + - test/**/*.dart + - example/**/*.dart + +swift: + - changed-files: + - any-glob-to-all-files: + - macos/**/*.swift + - example/macos/**/*.swift diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7a64a47..42d065a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,12 +9,13 @@ jobs: name: Publish to pub.dev permissions: id-token: write # Required for authentication using OIDC to publish to pub.dev - contents: write # Required for creating a GitHub release and uploading the LICENSE file uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 github-release: name: Create GitHub Release needs: publish runs-on: ubuntu-latest + permissions: + contents: write # Required for creating a GitHub release and uploading the LICENSE file steps: - name: 📥 Checkout Repository diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ff0c768..8f6cf04 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,7 @@ jobs: dart-unit-tests: name: Dart unit tests runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v4 @@ -29,6 +30,7 @@ jobs: native-macos-unit-tests: name: Native macOS unit tests runs-on: macos-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 58b6f66..693a4aa 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ This functionality was originally proposed as a [pull request to `image_picker_m ## 🧪 Testing > [!TIP] -> With this approach, you can effectively test this platform implementation with the existing packages that use `image_picker` APIs. All platform-specific calls to `NativeImagePickerMacOS` should use the instance from `ImagePickerPlatform.interface` instead of creating a new `NativeImagePickerMacOS` to work. +> With this approach, you can effectively test this platform implementation with the existing packages that use `image_picker` APIs. All platform-specific calls to `NativeImagePickerMacOS` should use the instance from `ImagePickerPlatform.instance` instead of creating a new `NativeImagePickerMacOS` to work. To override the methods implementation for unit testing, add the dev dependencies: