-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Audio player feat: Camera view feat: Video player feat: Star ra…
…ting feat: Interactive viewer feat: Speed scroll list fix: Add semantics to SplitTabNavigator chore: enable GitHub actions for code quality, preview, release fix: html viewer bugs chore: update dependencies chore: Update icons chore: Update flutter_quill chore: Update translations
- Loading branch information
1 parent
23d4c83
commit 8c86b9c
Showing
201 changed files
with
9,132 additions
and
10,005 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "CI - Release" | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+*" | ||
|
||
jobs: | ||
check-package: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
environment: pub.dev | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dart-lang/setup-dart@v1 | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.19.x" | ||
channel: "stable" | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Format code | ||
run: dart format --fix . | ||
- name: Check Publish Warnings | ||
run: dart pub publish --dry-run | ||
- name: Publish | ||
run: dart pub publish --force | ||
deploy-preview: | ||
name: Deploy preview version of the example app on firebase | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.19.x" | ||
channel: "stable" | ||
- name: Setup flutter | ||
run: flutter pub get | ||
- name: Build example app | ||
run: | | ||
cd example | ||
flutter build web -o ../build --no-tree-shake-icons | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZDS_FLUTTER }}" | ||
expires: 7d | ||
projectId: zds-c9c24 | ||
channelId: "release" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,52 @@ | ||
name: "PR" | ||
|
||
name: CI - Pull Request | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
changes: | ||
up-to-date: | ||
name: "Check branch is up to date" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
outputs: | ||
files: ${{steps.changed-files.outputs.any_changed}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
persist-credentials: false | ||
ref: ${{ github.head_ref }} | ||
- name: Check branch is up to date | ||
run: | | ||
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha}} ${{ github.event.pull_request.head.sha}} | ||
echo ${{ github.event.pull_request.base.sha}} | ||
echo ${{ github.event.pull_request.head.sha}} | ||
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha}} ${{ github.event.pull_request.head.sha}} | ||
then | ||
echo "Your branch is up to date." | ||
exit 0 | ||
else | ||
echo "You need to merge / rebase." | ||
exit 1 | ||
fi | ||
- name: Get all changed *.dart, files in docs or pubspec.yaml | ||
changes: | ||
name: "Check for changes in code" | ||
needs: up-to-date | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
outputs: | ||
files: ${{steps.changed-files.outputs.any_changed}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
persist-credentials: false | ||
- name: Get all changed *.dart and pubspec.yaml | ||
id: changed-files | ||
uses: tj-actions/changed-files@v37 | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
base_sha: ${{ github.event.pull_request.base.sha }} | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
files: | | ||
**/*.dart | ||
pubspec.yaml | ||
analyze: | ||
code-quality: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
needs: changes | ||
|
@@ -44,17 +56,20 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
- name: Get branch name | ||
id: branch-name | ||
uses: tj-actions/[email protected] | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.13.x" | ||
flutter-version: "3.19.x" | ||
channel: "stable" | ||
- name: Setup flutter | ||
run: flutter pub get | ||
- name: Lint and format | ||
run: | | ||
dart format . -l 120 | ||
dart fix --apply | ||
dart analyze | ||
flutter analyze | ||
- name: Check for modified files | ||
id: git-check | ||
run: echo "modified=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)" >> $GITHUB_ENV | ||
|
@@ -66,3 +81,26 @@ jobs: | |
git add -A | ||
git commit -m '[automated commit] lint format and import sort' | ||
git push | ||
deploy-preview: | ||
name: Deploy preview version of the example app on firebase | ||
needs: code-quality | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.19.x" | ||
channel: "stable" | ||
- name: Setup flutter | ||
run: flutter pub get | ||
- name: Build example app | ||
run: | | ||
cd example | ||
flutter build web -o ../build --no-tree-shake-icons | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZDS_FLUTTER }}" | ||
expires: 7d | ||
projectId: zds-c9c24 | ||
channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: release-please | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,5 @@ pubspec.lock | |
|
||
**/node_modules | ||
.master/ | ||
**/.fvm/ | ||
**/.fvm/ | ||
.fvmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "1.0.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.