Skip to content

Commit

Permalink
ci: update workflows for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus committed Nov 15, 2024
1 parent d5a13aa commit 0e1c562
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 26 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dart_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dart Examples

on:
pull_request:
paths:
- .github/workflows/dart_examples.yml
- example/*.dart
- lib/**
- analysis_options.yaml
- pubspec.yaml
push:
branches: [main]
paths:
- .github/workflows/dart_examples.yml
- example/*.dart
- lib/**
- analysis_options.yaml
- pubspec.yaml

jobs:
build:
uses: halildurmus/workflows/.github/workflows/dart.yml@main
with:
analyze_directories: $(find . -type f -not \( -path .*wallpaper/* -prune \) -name '*.dart' -print)
format_directories: $(find . -type f -not \( -path .*wallpaper/* -prune \) -name '*.dart' -print)
run_tests: false
working_directory: example
26 changes: 0 additions & 26 deletions .github/workflows/examples.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/flutter_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Flutter Examples

on:
pull_request:
paths:
- .github/workflows/flutter_examples.yml
- example/wallpaper/lib/**
- example/wallpaper/analysis_options.yaml
- example/wallpaper/pubspec.yaml
- lib/**
- analysis_options.yaml
- pubspec.yaml
push:
branches: [main]
paths:
- .github/workflows/flutter_examples.yml
- example/wallpaper/lib/**
- example/wallpaper/analysis_options.yaml
- example/wallpaper/pubspec.yaml
- lib/**
- analysis_options.yaml
- pubspec.yaml

jobs:
build:
uses: halildurmus/workflows/.github/workflows/flutter.yml@main
with:
analyze_directories: lib
format_directories: lib
run_tests: false
working_directory: example/wallpaper

0 comments on commit 0e1c562

Please sign in to comment.