Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBarbosatec committed Dec 23, 2024
1 parent b96b963 commit de2db2a
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
name: unit-tests
name: Code Quality

on:
push:
branches:
- master
- main
pull_request:
types: [opened,ready_for_review,synchronize]

jobs:
test-analyze:
name: Lint and Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-12]
if: github.event.pull_request.draft == false
format-and-fix:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Intall dart
uses: dart-lang/setup-dart@v1
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter pub get
- run: flutter analyze
- run: dart format --output=none --set-exit-if-changed .
- name: Checkout
uses: actions/checkout@v2

- name: Intall dart
uses: dart-lang/setup-dart@v1

- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Get packages
run: flutter pub get

- name: Check format errors
run: dart format --output=none --set-exit-if-changed .

# - name: Check lint errors
# run: flutter analyze .

0 comments on commit de2db2a

Please sign in to comment.