Skip to content

Commit

Permalink
Merge pull request #40 from LeoAndo/release-v1.0.0
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
LeoAndo authored Feb 15, 2023
2 parents 22aac72 + adf0fa5 commit 7fc7d42
Show file tree
Hide file tree
Showing 187 changed files with 10,809 additions and 82 deletions.
4 changes: 4 additions & 0 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.7.3",
"flavors": {}
}
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# see: https://zenn.dev/mamushi/articles/hide_generated_file_diff
# 自動生成ファイルの diff をGithub Pull Requestに表示しないようにする
*.freezed.dart linguist-generated=true
*.g.dart linguist-generated=true
*.gen.dart linguist-generated=true
*.gr.dart linguist-generated=true
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# issues (任意)

# 修正内容 (必須)

# capture (任意)

| before | after |
|:---|:---:|
|<img src="" width=320 /> |<img src="" width=320 /> |

# refs (任意)
18 changes: 18 additions & 0 deletions .github/analyzer-problem-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "dart-analyzer",
"pattern": [
{
"regexp": "^\\s*(info|warning|error)\\s•\\s(.*)\\s•\\s(.*):(\\d+):(\\d+)\\s•\\s(.*)$",
"severity": 1,
"message": 2,
"file": 3,
"line": 4,
"column": 5,
"code": 6
}
]
}
]
}
152 changes: 152 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
name: ci

on:
push:
branches: [ "main", "develop", /^release\-.*$/ ]
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

permissions:
contents: read
issues: write
pull-requests: write

jobs:
# Check static dart formatting
format:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run flutter version
run: flutter --version

- name: Run flutter pub get
run: flutter pub get

- name: Run flutter pub run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .


# Check import_sorter
import_sorter:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run flutter version
run: flutter --version

- name: Run flutter pub get
run: flutter pub get

- name: Run flutter pub run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Run import_sorter
run: flutter pub run import_sorter:main --exit-if-changed


# Check flutter static analysis
analyze:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run flutter version
run: flutter --version

- name: Run flutter pub get
run: flutter pub get

- name: Run flutter pub run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Install matcher
run: echo "::add-matcher::.github/analyzer-problem-matcher.json"

- name: Run flutter analyze
shell: bash
run: |
flutter analyze | tee ./flutter_analyze_report.txt
- name: Remove matcher
if: always()
run: echo "::remove-matcher owner=dart-analyzer::"

- name: Setup Ruby
uses: ruby/setup-ruby@v1
if: always()
with:
ruby-version: '2.7'
bundler-cache: true

- name: Danger
uses: MeilCli/danger-action@v5
if: always()
with:
plugins_file: 'Gemfile'
install_path: 'vendor/bundle'
danger_file: 'Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}


# Check flutter test
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run flutter version
run: flutter --version

- name: Run flutter pub get
run: flutter pub get

- name: Run flutter pub run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Run flutter test
run: flutter test
Loading

0 comments on commit 7fc7d42

Please sign in to comment.