Skip to content

Commit ace438d

Browse files
committed
ci: create build & test only action
1 parent c30ac80 commit ace438d

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Flutter Build and Test only
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
14+
workflow_dispatch:
15+
16+
env:
17+
FLUTTER_VERSION: 3.27.4
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v3
26+
27+
- name: Install Flutter
28+
uses: subosito/flutter-action@v2
29+
with:
30+
flutter-version: ${{ env.FLUTTER_VERSION }}
31+
channel: 'stable'
32+
cache: true
33+
34+
- run: flutter --version
35+
36+
- name: Install dependencies
37+
run: flutter pub get
38+
39+
- name: Analyze project source
40+
run: flutter analyze
41+
42+
- name: Run tests
43+
run: flutter test --coverage

0 commit comments

Comments
 (0)