File tree Expand file tree Collapse file tree 2 files changed +96
-0
lines changed Expand file tree Collapse file tree 2 files changed +96
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ' App Validation'
2+ description : ' Runs lint, format, and test on an app'
3+ runs :
4+ using : " composite"
5+ steps :
6+ - name : Checkout repository
7+ uses : actions/checkout@v4
8+
9+ - name : Set up flutter
10+ uses : kuhnroyal/flutter-fvm-config-action/setup@v3
11+
12+ - name : Install linux integration test dependencies
13+ run : sudo apt-get update && sudo apt-get install -y libglu1-mesa xvfb
14+
15+ - name : Get dependencies
16+ run : flutter pub get
17+
18+ - name : Check dart formatting
19+ run : dart format -o none --set-exit-if-changed .
20+
21+ - name : Check dart analysis
22+ run : dart analyze --fatal-infos --fatal-warnings .
23+
24+ - name : Run unit tests
25+ run : flutter test
26+
27+ - name : Run linux integration tests
28+ run : |
29+ export DISPLAY=:99 # Set display for Xvfb
30+ xvfb-run -a flutter test integration_test/app_test.dart -d linux
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+ ------------
46+ name : " Run Linux Integration Tests"
47+
48+ on :
49+ workflow_call :
50+ inputs :
51+ working-directory :
52+ description : " Working directory for the app validations"
53+ required : true
54+ type : string
55+
56+ jobs :
57+ linux_integration_tests :
58+ name : Run Linux Integration Tests
59+ runs-on : ubuntu-latest
60+ defaults :
61+ run :
62+ working-directory : ${{ inputs.working-directory }}
63+
64+ steps :
65+
66+
67+ - name : Install Dependencies
68+ run : sudo apt-get update && sudo apt-get install -y libglu1-mesa xvfb
69+
70+ - name : Set up Flutter
71+ uses : subosito/flutter-action@v2
72+ with :
73+ channel : " stable"
74+
75+ - name : Get Dependencies
76+ run : flutter pub get
77+
78+
Original file line number Diff line number Diff line change 1+ name : Validation
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - refresh
9+
10+ jobs :
11+ vanilla :
12+ name : Vanilla
13+ runs-on : ubuntu-latest
14+ defaults :
15+ run :
16+ working-directory : vanilla
17+ steps :
18+ - uses : ./.github/actions/app_validation.yml
You can’t perform that action at this time.
0 commit comments