Skip to content
Open
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
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish

on:
push:
tags: ['v*']

jobs:
publish:
name: Publish to pub.dev

runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Clone repository
uses: actions/checkout@v4

# This step adds the auth token for pub.dev
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: 3.2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.16.x

- name: Publish and release
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1
25 changes: 0 additions & 25 deletions .github/workflows/publish.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
push:
branches: [main]
tags-ignore: ['v*']
pull_request:
branches: [main]

jobs:
test:
name: Flutter ${{ matrix.flutter }}

strategy:
fail-fast: false
matrix:
flutter: ['3.10.x', '3.13.x', '3.16.x']

runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter }}

- name: Install dependencies
run: flutter pub get

- name: Run tests
if: success() || failure()
run: flutter test --coverage

- name: Run analyzer
if: success() || failure()
run: flutter analyze

- name: Run formatter
if: success() || failure()
run: dart format --set-exit-if-changed .
47 changes: 0 additions & 47 deletions .github/workflows/test.yml

This file was deleted.

11 changes: 1 addition & 10 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
include: package:lint/analysis_options_package.yaml

linter:
rules:
sort_constructors_first: true
prefer_single_quotes: true

analyzer:
exclude:
- example
include: package:leancode_lint/analysis_options_package.yaml
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ class HomeScreen extends StatelessWidget {
Text(
'Click me!',
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headline4,
style: Theme.of(context).textTheme.headlineMedium,
),
Expanded(
child: Padding(
padding: const EdgeInsets.fromLTRB(72, 0, 72, 64),
child: DashedLine(
path: path,
color: Theme.of(context).textTheme.headline4!.color!,
color: Theme.of(context).textTheme.headlineMedium!.color!,
),
),
),
Expand Down
Loading