yubioath-flutter/.github/workflows/scan-dependencies.yml
Alexandru Geana a2aec75f0c 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
2021-11-25 15:58:18 +00:00

29 lines
591 B
YAML

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'