Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improvements to dev xp #947

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name-template: Release v$NEXT_MINOR_VERSION 🌈
tag-template: v$NEXT_MINOR_VERSION
categories:
- title: 🚀 Features
label:
- feature
- feat
- title: 🐛 Bug Fixes
label: fix
- title: 🧰 Maintenance
label: chore
- title: Dependencies and Libraries
label:
- dependencies
- chore(deps)
change-template: '- $TITLE (#$NUMBER) - @$AUTHOR'
template: |-
## Changes

$CHANGES

## Contributors

Thanks a lot to our contributors for making this release possible:
$CONTRIBUTORS
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: flutter analyze

android:
name: Android Flutter Build
needs: common
runs-on: ubuntu-latest
steps:
Expand All @@ -42,6 +43,7 @@ jobs:
flutter build appbundle

ios:
name: iOS Flutter Build
needs: common
runs-on: macos-latest
steps:
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:


android:
name: Android Flutter Build
needs: common
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -182,6 +183,7 @@ jobs:
fi

ios:
name: iOS Flutter Build
needs: common
runs-on: macos-latest
steps:
Expand All @@ -200,4 +202,16 @@ jobs:
VERSION_NAME: ${{needs.common.outputs.VERSION_NAME}}
VERSION_CODE: ${{needs.common.outputs.VERSION_CODE}}
run: |
flutter build ipa --no-codesign --build-name $VERSION_NAME --build-number $VERSION_CODE
flutter build ipa --no-codesign --build-name $VERSION_NAME --build-number $VERSION_CODE

update-release:
needs: [common, android, ios]
runs-on: ubuntu-latest
steps:
- name: Run Release Drafter
uses: release-drafter/release-drafter@v6
with:
version: ${{ needs.common.outputs.VERSION_NAME }}
name: 'Release v${{ needs.common.outputs.VERSION_NAME }}'
tag: 'v${{ needs.common.outputs.VERSION_CODE }}'

23 changes: 23 additions & 0 deletions .github/workflows/semantic_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Semantic Validation"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: write

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ignoreLabels: |
chore(deps)
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dart-code.flutter"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [

]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"[dart]": {
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.formatOnSave": true,
}
}