Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Add job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjort committed Nov 23, 2023
1 parent d91727a commit 574b30c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/analyze-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ env:
flutter_version: 3.13.6

jobs:
check-licenses:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: 'stable'
cache: true

- run: dart pub get

- name: Check format
run: dart run scripts/check_license.dart

analyze-format:
runs-on: ubuntu-22.04
steps:
Expand Down
9 changes: 8 additions & 1 deletion scripts/license.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
permittedLicenses:
- MIT
- BSD-3-Clause
- Apache-2.0
- MIT-Modern-Variant
- Zlib

rejectedLicenses:
- GPL
- GPL-1
- GPL-2
- GPL-3

packageLicenseOverride:
flutter_test: BSD-3-Clause
flutter_web_plugins: BSD-3-Clause

omitDisclaimer:
- flutter_test
- flutter_web_plugins
- flutter_web_plugins

0 comments on commit 574b30c

Please sign in to comment.