todo_app/.forgejo/workflows/ci.yml
PeterChrz 514adde721
Some checks failed
CI / Static Analysis (push) Failing after 2m7s
CI / Tests (push) Has been skipped
Initial commit: Flutter todo app with Riverpod
2026-08-04 23:40:54 -04:00

35 lines
754 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
analyze:
name: Static Analysis
runs-on: ubuntu-latest
container:
image: ghcr.io/cirruslabs/flutter:3.24.5
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: flutter pub get
- name: Check formatting
run: dart format --set-exit-if-changed lib/ test/
- name: Analyze
run: flutter analyze
test:
name: Tests
runs-on: ubuntu-latest
needs: analyze
container:
image: ghcr.io/cirruslabs/flutter:3.24.5
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test