Skip to content

feat: CI/CDワークフローとフォーマッター設定を追加 (issue #103)#104

Merged
KOU050223 merged 11 commits intodevelopfrom
KOU050223/add-ci-formatter
Aug 11, 2025
Merged

feat: CI/CDワークフローとフォーマッター設定を追加 (issue #103)#104
KOU050223 merged 11 commits intodevelopfrom
KOU050223/add-ci-formatter

Conversation

@KOU050223
Copy link
Owner

@KOU050223 KOU050223 commented Aug 10, 2025

概要

issue #103 の実装として、CI/CDワークフローとコードフォーマッター設定を追加しました。

主な変更点

🚀 GitHub Actions ワークフロー

  • CI ワークフロー (.github/workflows/ci.yml)

    • フォーマットチェック
    • 静的解析 (flutter analyze --fatal-infos)
    • テスト実行
    • リリースAPKビルド(mainブランチのみ)
  • フォーマットチェック (.github/workflows/format-check.yml)

    • PRでのコードフォーマット検証
  • コード品質チェック (.github/workflows/code-quality.yml)

    • 詳細な解析レポート生成

🎨 フォーマッター設定

  • analysis_options.yamlの拡張
    • prefer_single_quotes: true
    • avoid_print: true
    • unused_import: error
    • unnecessary_import: error

🛠️ 開発用統合コマンド

  • Makefileの追加

    • make ci - CI用の全チェック
    • make check - 開発用チェック
    • make fix - 自動修正
    • make format - フォーマット
    • make lint - 静的解析
    • make test - テスト
  • シェルスクリプトの追加

    • scripts/ci.sh - CI用スクリプト
    • scripts/format.sh - フォーマットスクリプト
    • scripts/lint.sh - 静的解析スクリプト
    • scripts/test.sh - テストスクリプト
  • Dartスクリプトの追加

    • scripts/run.dart - 統合スクリプトランナー

使用方法

開発時

make check  # 開発用チェック(warningは許可)
make fix    # 自動修正

PR前

make ci     # CI環境と同じチェックを実行

個別実行

make format  # フォーマットのみ
make lint    # 静的解析のみ
make test    # テストのみ

テスト結果

  • ✅ GitHub Actions ワークフローファイルが正常に作成されました
  • ✅ Makefileの動作確認済み
  • ✅ フォーマッター設定が適用されました
  • ⚠️ 既存コードに多数の警告がありますが、段階的に修正予定

影響範囲

  • 新規ファイルの追加のみで、既存のロジックには影響なし
  • CI/CDパイプラインが有効化されます
  • PR・pushでの自動チェックが開始されます

@github-actions
Copy link

github-actions bot commented Aug 10, 2025

Visit the preview URL for this PR (updated for commit 9dee34e):

https://animeishi-73560--pr104-kou050223-add-ci-for-ixthray1.web.app

(expires Mon, 18 Aug 2025 07:51:09 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f1f494a67df8ccbb2232f73b6ccab4934a51e505

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements CI/CD workflows and code formatter settings for the Flutter project, addressing issue #103. The changes focus on establishing automated quality control processes and providing convenient development tools.

Key changes:

  • Adds comprehensive GitHub Actions workflows for CI/CD automation including format checking, static analysis, testing, and APK building
  • Implements code formatter configuration with strict linting rules and error-level warnings for imports
  • Provides integrated development commands through Makefile, shell scripts, and Dart scripts for streamlined workflow

Reviewed Changes

Copilot reviewed 108 out of 126 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
work-log-2025-08-10.md Adds development work log entries with repository and branch information
test/*.dart Updates test files with improved formatting and simplified test structure
scripts/*.{sh,dart,md} Introduces automation scripts for CI, formatting, linting, testing with comprehensive documentation
windows/, macos/, linux/ Removes entire platform-specific directories for Windows, macOS, and Linux
lib/utils/, lib/ui/ Applies consistent code formatting following new linting rules
Files not reviewed (1)
  • macos/Runner.xcworkspace/contents.xcworkspacedata: Language not supported

@KOU050223 KOU050223 changed the base branch from main to develop August 11, 2025 07:46
@KOU050223 KOU050223 merged commit 7529237 into develop Aug 11, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from レビュー待ち to Done in アニ名刺Project Aug 11, 2025
@KOU050223 KOU050223 deleted the KOU050223/add-ci-formatter branch August 11, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants