From 574b30cc747ef3e322a7a9c8051a79ac802ffd79 Mon Sep 17 00:00:00 2001 From: Hjort Date: Thu, 23 Nov 2023 16:10:54 +0100 Subject: [PATCH] Add job to CI --- .github/workflows/analyze-format.yml | 18 ++++++++++++++++++ scripts/license.yaml | 9 ++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyze-format.yml b/.github/workflows/analyze-format.yml index 66c42bc..80df279 100644 --- a/.github/workflows/analyze-format.yml +++ b/.github/workflows/analyze-format.yml @@ -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: diff --git a/scripts/license.yaml b/scripts/license.yaml index 5e9f27a..c6c2555 100644 --- a/scripts/license.yaml +++ b/scripts/license.yaml @@ -1,6 +1,9 @@ permittedLicenses: - MIT - BSD-3-Clause + - Apache-2.0 + - MIT-Modern-Variant + - Zlib rejectedLicenses: - GPL @@ -8,7 +11,11 @@ rejectedLicenses: - 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