Skip to content

Split publish and lint+test github actions #3

Split publish and lint+test github actions

Split publish and lint+test github actions #3

Workflow file for this run

name: Lint + Test
on:
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Install Flutter
uses: subosito/flutter-action@v2
- name: Install packages
run: flutter pub get
- name: Linter
run: flutter analyze
- name: Test
run: flutter test
- name: Test example package
run: |
cd example
flutter test