Skip to content

Commit

Permalink
chore: update sdk version, yaru and add CI and release workflows (#1)
Browse files Browse the repository at this point in the history
* chore: update sdk version, yaru and add CI and release workflows
  • Loading branch information
Feichtmeier authored Oct 30, 2024
1 parent 43902a3 commit 3b03deb
Show file tree
Hide file tree
Showing 51 changed files with 776 additions and 1,546 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yaml
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
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
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
31 changes: 26 additions & 5 deletions analysis_options.yaml
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
44 changes: 0 additions & 44 deletions clipboard_viewer/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions clipboard_viewer/.metadata

This file was deleted.

26 changes: 0 additions & 26 deletions clipboard_viewer/.vscode/launch.json

This file was deleted.

16 changes: 0 additions & 16 deletions clipboard_viewer/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions clipboard_viewer/analysis_options.yaml

This file was deleted.

91 changes: 0 additions & 91 deletions clipboard_viewer/lib/main.dart

This file was deleted.

1 change: 0 additions & 1 deletion clipboard_viewer/linux/.gitignore

This file was deleted.

Loading

0 comments on commit 3b03deb

Please sign in to comment.