Skip to content

Commit f8b38e7

Browse files
ci: Add base pipeline
1 parent cf5c2aa commit f8b38e7

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/base.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Base
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
pull_request:
8+
branches: [main]
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: macos-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Check broken links
20+
uses: JustinBeckwith/linkinator-action@v1
21+
with:
22+
paths: "**/*.md"
23+
24+
- name: Flutter action
25+
uses: subosito/flutter-action@v2
26+
with:
27+
channel: 'stable'
28+
flutter-version: '2.10.5'
29+
30+
- name: Install dependencies
31+
run: flutter pub get
32+
- name: Format code
33+
run: flutter format --dry-run --set-exit-if-changed .
34+
- name: Analyze static code
35+
run: flutter analyze
36+
# - name: Run tests
37+
# run: flutter test
38+
- name: Build example
39+
run: |
40+
cd example
41+
flutter build appbundle --debug
42+
flutter build ios --debug --no-codesign
43+
flutter build web --debug

0 commit comments

Comments
 (0)