name: Scan Dependencies

on:
  schedule:
    - cron: 25 12 * * *

jobs:
  scan:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - uses: subosito/flutter-action@v1
        with:
          channel: 'beta'

      - name: enabling linux desktop support
        run: flutter config --enable-linux-desktop

      - name: Check direct dependencies
        run: |
          flutter pub outdated | grep 'direct dependencies: all up-to-date'

      - name: Check dev_dependencies
        run: |
          flutter pub outdated | grep 'dev_dependencies: all up-to-date'

Add Github action to scan dart dependencies
Add Github action to scan dart dependencies

Dependabot does not currently support Dart projects. As such, a
temporary alternative is to use the `pub outdated` command combined with
a Github action which runs at regular intervals (currently once a day).

The open issue where Dart support in Dependabot is being tracked is
https://github.com/dependabot/dependabot-core/issues/2166
