-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update sdk version, yaru and add CI and release workflows (#1)
* chore: update sdk version, yaru and add CI and release workflows
- Loading branch information
1 parent
43902a3
commit 3b03deb
Showing
51 changed files
with
776 additions
and
1,546 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
FLUTTER_VERSION: '3.24.3' | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: ${{env.FLUTTER_VERSION}} | ||
- run: flutter pub get | ||
- run: flutter analyze --fatal-infos | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: ${{env.FLUTTER_VERSION}} | ||
- run: flutter pub get | ||
- run: dart format --set-exit-if-changed . | ||
|
||
# test: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: subosito/flutter-action@v2 | ||
# with: | ||
# channel: 'stable' | ||
# flutter-version: ${{env.FLUTTER_VERSION}} | ||
# - run: flutter test | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: ${{env.FLUTTER_VERSION}} | ||
- run: sudo apt update | ||
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev | ||
- run: flutter pub get | ||
- run: flutter build linux -v |
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,19 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
with: | ||
release-type: dart |
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,6 +1,27 @@ | ||
include: package:lint/analysis_options.yaml | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
exclude: | ||
- lib/generated_plugin_registrant.dart | ||
- lib/**/*.g.dart | ||
linter: | ||
rules: | ||
prefer_single_quotes: true | ||
require_trailing_commas: true | ||
always_declare_return_types: true | ||
avoid_catches_without_on_clauses: true | ||
avoid_equals_and_hash_code_on_mutable_classes: true | ||
avoid_types_on_closure_parameters: true | ||
cancel_subscriptions: true | ||
directives_ordering: true | ||
eol_at_end_of_file: true | ||
prefer_asserts_in_initializer_lists: true | ||
prefer_const_constructors: true | ||
prefer_final_in_for_each: true | ||
prefer_final_locals: true | ||
prefer_null_aware_method_calls: true | ||
prefer_null_aware_operators: true | ||
sort_unnamed_constructors_first: true | ||
sort_pub_dependencies: true | ||
type_annotate_public_apis: true | ||
unawaited_futures: true | ||
unnecessary_lambdas: true | ||
unnecessary_parenthesis: true | ||
use_named_constants: true | ||
use_super_parameters: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.