Skip to content

Commit

Permalink
なんかもうめっちゃ変えた
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Mar 30, 2024
1 parent bc44391 commit e458e2f
Show file tree
Hide file tree
Showing 1,203 changed files with 286,892 additions and 62,926 deletions.
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Flutter",
"dockerFile": "../Dockerfile",
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}"
},
"runArgs": [
"--net=host",
"--privileged"
],
"customizations": {
"vscode": {
"extensions": [
"dart-code.dart-code",
"dart-code.flutter"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
}
}
},
"postCreateCommand": "fvm install -s && fvm flutter pub get",
"remoteUser": "vscode"
}
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "stable"
}
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: 🐛 Bug Report
description: Create a report to help us improve
labels: ["bug"]

body:
- type: textarea
attributes:
label: 💡 Summary
description: Tell us what the bug is
validations:
required: true

- type: textarea
attributes:
label: 🥰 Expected Behavior
description: Tell us what should happen
validations:
required: true

- type: textarea
attributes:
label: 🤬 Actual Behavior
description: |
Tell us what happens instead of the expected behavior.
Please include errors from the developer console and/or server log files if you have access to them.
validations:
required: true

- type: textarea
attributes:
label: 📝 Steps to Reproduce
placeholder: |
1.
2.
3.
validations:
required: false

- type: textarea
attributes:
label: 💻 Environment
description: |
Tell us where on the platform it happens
DO NOT WRITE "latest". Please provide the specific version.
Examples:
* Model and OS of the device(s): Pixel 7a, Android 14
* Aria: 1.x.x+x
* Server URL: misskey.io
* Misskey: 2024.x.x
value: |
* Model and OS of the device(s):
* Aria:
* Server URL:
* Misskey:
render: markdown
validations:
required: false

- type: checkboxes
attributes:
label: Do you want to address this bug yourself?
options:
- label: Yes, I will patch the bug myself and send a pull request
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/02_feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ✨ Feature Request
description: Suggest an idea for this project
labels: ["feature"]

body:
- type: textarea
attributes:
label: Summary
description: Tell us what the suggestion is
validations:
required: true
- type: textarea
attributes:
label: Purpose
description: Describe the specific problem or need you think this feature will solve, and who it will help.
validations:
required: true
- type: checkboxes
attributes:
label: Do you want to implement this feature yourself?
options:
- label: Yes, I will implement this by myself and send a pull request
72 changes: 0 additions & 72 deletions .github/workflows/aab_deploy.yml

This file was deleted.

116 changes: 116 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: CI

on:
pull_request:
push:
workflow_dispatch:

jobs:
format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Dart
uses: dart-lang/setup-dart@v1

- name: Format
run: dart format --output=none --set-exit-if-changed \
$(find . -name '*.dart' -not -name '*.g.dart' -and -not -name '*.freezed.dart')

analyze:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Get dependencies
run: flutter pub get

- name: Analyze
uses: invertase/github-action-dart-analyzer@v3
with:
fatal-infos: true
custom-lint: true

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Get dependencies
run: flutter pub get

- name: Test
run: flutter test

integration-test-ios:
runs-on: macos-14

steps:
- uses: actions/checkout@v4

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

- name: Get dependencies
run: flutter pub get

- name: Start simulator
uses: futureware-tech/simulator-action@v3
with:
model: 'iPhone 14'

- name: Integration test
run: flutter test integration_test

check-i18n-sorting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Get changed i18n files
id: changed-i18n-files
uses: tj-actions/changed-files@v44
with:
files: lib/i18n/aria/*.i18n.yaml

- name: Install Flutter
if: steps.changed-i18n-files.outputs.any_changed == 'true'
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Get dependencies
if: steps.changed-i18n-files.outputs.any_changed == 'true'
run: flutter pub get

- name: Compare i18n files
if: steps.changed-i18n-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-i18n-files.outputs.all_changed_files }}
run: |
for file in $ALL_CHANGED_FILES; do
cp $file $file.copy
dart run script/sort_yaml.dart $file
cmp $file $file.copy
done
44 changes: 0 additions & 44 deletions .github/workflows/dart_test.yml

This file was deleted.

Loading

0 comments on commit e458e2f

Please sign in to comment.