Skip to content

Commit

Permalink
Update dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
reypryma authored Nov 1, 2023
1 parent f32946e commit cac52f1
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,44 @@
# separate terms of service, privacy policy, and support
# documentation.

# name: Dart

# on:
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]

# jobs:
# lint:
# name: Dart/Flutter Package Analyzer
# runs-on: ubuntu-latest

# steps:
# - name: Dart/Flutter Package Analyzer
# # You may pin to the exact commit or the version.
# # uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2
# uses: axel-op/dart-package-analyzer@v3
# with:
# # Token to connect to GitHub. Use secrets.GITHUB_TOKEN
# githubToken: ${{secrets.GITHUB_TOKEN}}

name: Dart

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches: [master]
push:
branches: [master]

jobs:
lint:
name: Lint Check
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Setup Flutter
uses: subosito/flutter-action@v6
with:
flutter-version: 2.x # Adjust to the Flutter version you're using
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1

- name: Run Linting
run: flutter analyze
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze
- run: dart test

0 comments on commit cac52f1

Please sign in to comment.