Skip to content

Commit

Permalink
Update gitignore and dart-analyzer workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LucJosin committed Apr 13, 2023
1 parent 385ea6d commit 8532f6e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/dart-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,44 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
melos-version: 3.0.1
steps:
# Setup
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1

# Setup flutter
- uses: subosito/flutter-action@v2
with:
sdk: "2.18.0"
- name: Install dependencies
run: dart pub get
- name: "Install flutter"
run: ./.github/workflows/scripts/install-flutter.sh
channel: "stable"

# Install dependencies
- name: "Install dependencies"
run: flutter pub get

# Install tools
- name: "Install tools"
run: ./.github/workflows/scripts/install-tools.sh
run: |
flutter config --no-analytics
flutter pub global activate melos ${{env.melos-version}}
# Melos boostrap
- name: "Bootstrap workspace (Melos)"
run: melos bootstrap

# Run Flutter Format to ensure formatting is valid
- name: "Run flutter format"
run: flutter format --set-exit-if-changed .

# Dart analyzer
- name: "Run Dart Analyze"
uses: invertase/github-action-dart-analyzer@v1
with:
Expand All @@ -33,5 +53,7 @@ jobs:
annotate: true
annotate-only: false
working-directory: ./packages

# Dry run
- name: "Dry run"
run: melos publish --dry-run
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# on_audio_query
on_audio_query/example/assets/

.fuse*

.DS_Store
.dart_tool/

Expand Down

0 comments on commit 8532f6e

Please sign in to comment.