Skip to content

Commit 3ba8457

Browse files
committed
make CI fail if API docs are missing
closes #66
1 parent 0604963 commit 3ba8457

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ name: Code analysis
33
on: [push, pull_request]
44

55
jobs:
6-
lint:
6+
analyze:
7+
runs-on: ubuntu-20.04
8+
container:
9+
image: google/dart:latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- run: dart run build_runner build
13+
working-directory: objectbox
14+
- run: dart analyze
15+
working-directory: objectbox
16+
17+
pana:
718
runs-on: ubuntu-latest
819
steps:
920
- uses: actions/checkout@v2

objectbox/analysis_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ linter:
2525

2626
# exclude standalone packages:
2727
analyzer:
28+
errors:
29+
public_member_api_docs: error
30+
type_annotate_public_apis: error
2831
exclude:
2932
- example/**
3033
- generator/**

0 commit comments

Comments
 (0)