Skip to content

Commit 8d82f6b

Browse files
ci: Add base pipeline
1 parent 384763d commit 8d82f6b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/base.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
strategy:
16+
fail-fast: false
17+
matrix:
18+
channel: [stable, beta]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Check broken links
24+
uses: JustinBeckwith/linkinator-action@v1
25+
with:
26+
paths: "**/*.md"
27+
28+
- name: Flutter action
29+
uses: subosito/flutter-action@v2
30+
with:
31+
channel: ${{ matrix.channel }}
32+
33+
- name: Install dependencies
34+
run: flutter pub get
35+
- name: Format code
36+
run: flutter format --dry-run --set-exit-if-changed .
37+
- name: Analyze static code
38+
run: flutter analyze
39+
# - name: Run tests
40+
# run: flutter test
41+
- name: Build example
42+
run: |
43+
cd example
44+
flutter build appbundle --debug
45+
flutter build ios --debug --no-codesign

0 commit comments

Comments
 (0)