Skip to content

Commit fae7d7c

Browse files
committed
ci: add GitHub Actions workflow (analyze + test) and CI badge
1 parent 03cfa1e commit fae7d7c

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
analyze-and-test:
11+
name: Analyze & test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Flutter
18+
uses: subosito/flutter-action@v2
19+
with:
20+
channel: stable
21+
flutter-version: 3.44.1
22+
cache: true
23+
24+
- name: Install dependencies
25+
run: flutter pub get
26+
27+
- name: Generate code (freezed / json_serializable)
28+
run: dart run build_runner build
29+
30+
- name: Analyze
31+
run: flutter analyze
32+
33+
- name: Run tests
34+
run: flutter test

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# BP PDF
22

3+
[![CI](https://github.com/bpstack/bp_pdf/actions/workflows/ci.yml/badge.svg)](https://github.com/bpstack/bp_pdf/actions/workflows/ci.yml)
4+
35
A local-first PDF annotation editor built with Flutter. Everything runs on your device — no server, no accounts, no internet required.
46

57
## What it does

0 commit comments

Comments
 (0)