forked from krille-chan/fluffychat
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from pangeachat/auto-pr
Auto pr
- Loading branch information
Showing
158 changed files
with
21,309 additions
and
15,882 deletions.
There are no files selected for viewing
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,41 @@ | ||
name: Auto Pull Request | ||
|
||
#on: | ||
# schedule: | ||
# - cron: '0 0 * * 0' # Run at midnight (00:00) every Sunday | ||
|
||
on: | ||
push: | ||
branches: | ||
- auto-pr # Change this to match your main branch name | ||
|
||
jobs: | ||
auto_pull_request: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Test | ||
run: echo ${{ github.head_ref }}.${{ github.sha }} | ||
|
||
- name: Pull changes from FluffyChat | ||
run: | | ||
git config --global user.email "${{ vars.CI_EMAIL }}" | ||
git config --global user.name "${{ vars.CI_USERNAME }}" | ||
git remote add fluffychat https://github.com/krille-chan/fluffychat | ||
git fetch fluffychat main | ||
git merge --no-edit fluffychat/main --allow-unrelated-histories | ||
- name: Push changes | ||
run: | | ||
git push origin HEAD:main-update-fluffy-automatic | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
title: Updated fork with new fluffy changes | ||
body: | | ||
This is an automatic PR created by GitHub Actions. | ||
branch: main |
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 |
---|---|---|
|
@@ -19,22 +19,23 @@ jobs: | |
run: dart format lib/ test/ --set-exit-if-changed | ||
- name: Check import formatting | ||
run: dart run import_sorter:main --no-comments --exit-if-changed | ||
- name: Check license compliance | ||
run: dart run license_checker check-licenses -c licenses.yaml --problematic | ||
- run: flutter analyze | ||
- name: Apply google services patch | ||
run: git apply ./scripts/enable-android-google-services.patch | ||
- run: flutter analyze | ||
- run: flutter test | ||
- name: Check for unused localization strings | ||
run: flutter pub run translations_cleaner list-unused-terms -a | ||
|
||
build_debug_apk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cat .github/workflows/versions.env >> $GITHUB_ENV | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
distribution: "zulu" | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
@@ -66,7 +67,7 @@ jobs: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
cache: true | ||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 -y | ||
run: sudo apt-get update && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 libssl-dev -y | ||
- run: flutter pub get | ||
- run: flutter build linux --target-platform linux-x64 | ||
|
||
|
@@ -80,6 +81,9 @@ jobs: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
cache: true | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/[email protected] | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest | ||
- run: brew install sqlcipher | ||
- run: flutter pub get | ||
- run: flutter build ios --no-codesign |
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
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
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,2 +1,2 @@ | ||
FLUTTER_VERSION=3.16.7 | ||
JAVA_VERSION=17 | ||
FLUTTER_VERSION=3.19.5 | ||
JAVA_VERSION=17 |
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
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.