-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
115 additions
and
154 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
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,54 +1,49 @@ | ||
name: Auto Format | ||
|
||
# ref: https://qiita.com/blendthink/items/48e6c4b2c0f016da8c72 | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
# フォーマット対象のパス | ||
FORMAT_PATHS: "." | ||
|
||
jobs: | ||
auto-format: | ||
format: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# https://github.com/kuhnroyal/flutter-fvm-config-action | ||
- name: Fetch flutter config | ||
uses: kuhnroyal/flutter-fvm-config-action@v1 | ||
|
||
# https://github.com/subosito/flutter-action | ||
- name: Set up flutter | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: ${{ env.FLUTTER_CHANNEL }} | ||
cache: true | ||
cache-key: ${{ env.FLUTTER_VERSION }}-${{ env.FLUTTER_CHANNEL }} | ||
|
||
- name: Flutter version | ||
run: flutter --version | ||
- name: Install dependencies | ||
run: | | ||
flutter pub get | ||
- name: Format | ||
run: dart format $FORMAT_PATHS | ||
run: | | ||
files=$(find lib test -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.*g.dart" -o -name "*.gen.dart" \)) | ||
for file in $files; do | ||
# limit jobs to 5 | ||
if [ "$(jobs -r | wc -l)" -ge 5 ]; then | ||
wait "$(jobs -r -p | head -1)" | ||
fi | ||
dart fix --apply "$file" & | ||
done | ||
wait | ||
dart format "$files" | ||
# 変更が発生した場合は プルリクエストを作成 | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
delete-branch: true | ||
# base branch name (GITHUB_REF_NAME) | ||
commit-message: "Auto format" | ||
committer: "GitHub Actions <noreply@github.com>" | ||
base: ${{ github.head_ref }} | ||
branch: "auto-format/${{ github.sha }}" | ||
title: "Auto format - ref: ${{ github.ref_name }}" | ||
body: "Auto format by GitHub Actions on ${{ github.sha }}\nby: ${{github.actor}}" | ||
|
||
|
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,62 @@ | ||
name: iOS CI | ||
#発火条件 | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
build: | ||
#ビルド環境 | ||
runs-on: macos-latest | ||
# タイムアウト時間を設定 | ||
timeout-minutes: 45 | ||
|
||
steps: | ||
#リポジトリからソースをダンロード | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install brew packages | ||
run: brew bundle | ||
|
||
- name: Restore direnv to use fastlane | ||
run: | | ||
echo 'eval "$(direnv hook bash)"' >> ~/.bash_profile | ||
source ~/.bash_profile | ||
echo ${{ secrets.ENVRC }} | base64 -d > .envrc | ||
direnv allow . | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Show Xcode version | ||
run: xcodebuild -version | ||
|
||
- name: Fetch flutter config | ||
uses: kuhnroyal/flutter-fvm-config-action@v1 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: ${{ env.FLUTTER_CHANNEL }} | ||
cache: true | ||
|
||
|
||
- name: Flutter version | ||
run: flutter --version | ||
|
||
- name: Flutter dependencies install | ||
run: flutter pub get | ||
|
||
- name: Generate codes with build_runner | ||
run: | | ||
echo '${{ secrets.ENV }}' | base64 -d > .env | ||
flutter pub run build_runner build -d | ||
- name: build | ||
run: flutter build ios --release --no-codesign --obfuscate --split-debug-info=obfuscate/android | ||
|
||
- name: fastlane | ||
run: cd ios && bundle exec fastlane beta |
This file was deleted.
Oops, something went wrong.
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
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,3 +1,3 @@ | ||
report.xml | ||
screenshots | ||
metadata | ||
metadata |
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