mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
No CI currently runs on pull requests — the only workflow triggers on releases. This adds a lightweight, secrets-free workflow that runs flutter analyze and flutter test on PRs to main and pushes to main. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
417 B
YAML
27 lines
417 B
YAML
name: Validate PR
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
validate:
|
|
name: Analyze & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
|
|
- run: flutter pub get
|
|
|
|
- name: Analyze
|
|
run: flutter analyze
|
|
|
|
- name: Test
|
|
run: flutter test
|