基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
ci: replace changes filter with flutter test and analyze checks
Predidit11d430a5cb5c
diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yamlindex e977f2ed..13ba5c18 100644--- a/.github/workflows/pr.yaml+++ b/.github/workflows/pr.yaml@@ -52,46 +52,50 @@type: booleanjobs:- changes:- if: ${{ ! github.event.pull_request.draft }}+ flutter-test:+ if: ${{ github.event_name == 'workflow_dispatch' || ! github.event.pull_request.draft }}runs-on: "ubuntu-latest"permissions:- pull-requests: read- outputs:- android: ${{ steps.filter.outputs.android }}- windows: ${{ steps.filter.outputs.windows }}- ios: ${{ steps.filter.outputs.ios }}- macos: ${{ steps.filter.outputs.macos }}- linux: ${{ steps.filter.outputs.linux }}- all: ${{ steps.filter.outputs.all }}+ contents: readsteps:- - uses: actions/checkout@v4- - uses: dorny/paths-filter@v3- id: filter+ - name: Clone repository+ uses: actions/checkout@v4+ - name: Set up Flutter+ uses: subosito/[email protected]with:- predicate-quantifier: 'every'- filters: |- android:- - 'android/**'- windows:- - 'windows/**'- ios:- - 'ios/**'- macos:- - 'macos/**'- linux:- - 'linux/**'- all:- - '!android/**'- - '!windows/**'- - '!ios/**'- - '!macos/**'- - '!linux/**'+ channel: stable+ flutter-version-file: pubspec.yaml+ - name: Get Flutter dependencies+ run: flutter pub get+ shell: bash+ - name: Run Flutter tests+ run: flutter test+ shell: bash++ flutter-analyze:+ if: ${{ github.event_name == 'workflow_dispatch' || ! github.event.pull_request.draft }}+ runs-on: "ubuntu-latest"+ permissions:+ contents: read+ steps:+ - name: Clone repository+ uses: actions/checkout@v4+ - name: Set up Flutter+ uses: subosito/[email protected]+ with:+ channel: stable+ flutter-version-file: pubspec.yaml+ - name: Get Flutter dependencies+ run: flutter pub get+ shell: bash+ - name: Analyze Flutter project+ run: flutter analyze --no-fatal-infos --fatal-warnings+ shell: bashflutter-build-android:- needs: changes- if: ${{ github.event.inputs.run_android || (! github.event.pull_request.draft && (needs.changes.outputs.android || needs.changes.outputs.all)) }}+ needs: [flutter-test, flutter-analyze]+ if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run_android) || (github.event_name == 'pull_request' && ! github.event.pull_request.draft) }}name: "Release for android"runs-on: "ubuntu-latest"permissions: write-all@@ -133,8 +137,8 @@path: Kazumi_android_*.apkflutter-build-windows:- needs: changes- if: ${{ github.event.inputs.run_windows || (! github.event.pull_request.draft && (needs.changes.outputs.windows || needs.changes.outputs.all)) }}+ needs: [flutter-test, flutter-analyze]+ if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run_windows) || (github.event_name == 'pull_request' && ! github.event.pull_request.draft) }}name: "Release for windows"runs-on: "windows-latest"permissions: write-all@@ -199,8 +203,8 @@flutter-build-ios:- needs: changes- if: ${{ github.event.inputs.run_ios || (! github.event.pull_request.draft && (needs.changes.outputs.ios || needs.changes.outputs.all)) }}+ needs: [flutter-test, flutter-analyze]+ if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run_ios) || (github.event_name == 'pull_request' && ! github.event.pull_request.draft) }}name: "Release for iOS"runs-on: "macos-latest"permissions: write-all@@ -230,8 +234,8 @@path: Kazumi_ios_*.ipaflutter-build-macos:- needs: changes- if: ${{ github.event.inputs.run_macos || (! github.event.pull_request.draft && (needs.changes.outputs.macos || needs.changes.outputs.all)) }}+ needs: [flutter-test, flutter-analyze]+ if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run_macos) || (github.event_name == 'pull_request' && ! github.event.pull_request.draft) }}name: "Release for Macos"runs-on: "macos-latest"permissions: write-all@@ -260,8 +264,8 @@path: Kazumi_macos_*.dmgflutter-build-linux:- needs: changes- if: ${{ github.event.inputs.run_linux || (! github.event.pull_request.draft && (needs.changes.outputs.linux || needs.changes.outputs.all)) }}+ needs: [flutter-test, flutter-analyze]+ if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run_linux) || (github.event_name == 'pull_request' && ! github.event.pull_request.draft) }}name: "Release for Linux"runs-on: "ubuntu-latest"permissions: write-alldiff --git a/.github/workflows/release.yaml b/.github/workflows/release.yamlindex decb14a1..2f761fd5 100644--- a/.github/workflows/release.yaml+++ b/.github/workflows/release.yaml@@ -13,8 +13,47 @@default: 'warning'jobs:+ flutter-test:+ runs-on: "ubuntu-latest"+ permissions:+ contents: read+ steps:+ - name: Clone repository+ uses: actions/checkout@v4+ - name: Set up Flutter+ uses: subosito/[email protected]+ with:+ channel: stable+ flutter-version-file: pubspec.yaml+ - name: Get Flutter dependencies+ run: flutter pub get+ shell: bash+ - name: Run Flutter tests+ run: flutter test+ shell: bash++ flutter-analyze:+ runs-on: "ubuntu-latest"+ permissions:+ contents: read+ steps:+ - name: Clone repository+ uses: actions/checkout@v4+ - name: Set up Flutter+ uses: subosito/[email protected]+ with:+ channel: stable+ flutter-version-file: pubspec.yaml+ - name: Get Flutter dependencies+ run: flutter pub get+ shell: bash+ - name: Analyze Flutter project+ run: flutter analyze --no-fatal-infos --fatal-warnings+ shell: bash+flutter-build-android:name: "Release for android"+ needs: [flutter-test, flutter-analyze]runs-on: "ubuntu-latest"permissions: write-allsteps:@@ -164,6 +203,7 @@flutter-build-linux:name: "Release for Linux"+ needs: [flutter-test, flutter-analyze]runs-on: "ubuntu-latest"permissions: write-allsteps:@@ -266,6 +306,7 @@flutter-build-ios:name: "Release for iOS"+ needs: [flutter-test, flutter-analyze]runs-on: "macos-latest"permissions: write-all@@ -303,6 +344,7 @@flutter-build-macos:name: "Release for Macos"+ needs: [flutter-test, flutter-analyze]runs-on: "macos-latest"permissions: write-all