File tree Expand file tree Collapse file tree 3 files changed +63
-38
lines changed
actions/flutter_analysis_and_tests Expand file tree Collapse file tree 3 files changed +63
-38
lines changed Original file line number Diff line number Diff line change 1- name : " App Validation "
1+ name : " Validate "
22description : " Runs lint, format, and test on an app"
33inputs :
44 working-directory :
55 description : " Directory to run validation in"
66 required : true
7+ run-integration-tests :
8+ description : " Run integration tests"
9+ required : false
10+ default : " true"
11+
712runs :
813 using : " composite"
914 steps :
1015 - name : Set up flutter
1116 uses : kuhnroyal/flutter-fvm-config-action/setup@v3
1217
13- - name : Install linux integration test dependencies
14- shell : bash
15- run : |
16- sudo apt-get update
17- sudo apt-get install \
18- clang \
19- cmake \
20- git \
21- ninja-build \
22- pkg-config \
23- libgtk-3-dev \
24- liblzma-dev \
25- libstdc++-12-dev \
26- libglu1-mesa \
27- xvfb
28-
2918 - name : Get dependencies
3019 shell : bash
3120 run : flutter pub get
4736 working-directory : ${{ inputs.working-directory }}
4837
4938 - name : Run linux integration tests
39+ if : ${{ inputs.run-integration-tests != 'false' }}
5040 shell : bash
5141 run : |
42+ sudo apt-get update
43+ sudo apt-get install \
44+ clang \
45+ cmake \
46+ git \
47+ ninja-build \
48+ pkg-config \
49+ libgtk-3-dev \
50+ liblzma-dev \
51+ libstdc++-12-dev \
52+ libglu1-mesa \
53+ xvfb
5254 export DISPLAY=:99 # Set display for Xvfb
5355 xvfb-run -a flutter test integration_test/app_test.dart -d linux
5456 working-directory : ${{ inputs.working-directory }}
Original file line number Diff line number Diff line change 1+ name : Static Analysis & Tests
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - refresh
9+
10+ jobs :
11+ todos_repository_local_storage :
12+ name : Todos Repository Local Storage
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Static Analysis & Tests
19+ uses : ./.github/actions/flutter_analysis_and_tests
20+ with :
21+ working-directory : ./todos_repository_local_storage
22+ run-integration-tests : false
23+ vanilla :
24+ name : Vanilla
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout repository
28+ uses : actions/checkout@v4
29+
30+ - name : Static Analysis & Tests
31+ uses : ./.github/actions/flutter_analysis_and_tests
32+ with :
33+ working-directory : ./vanilla
34+ inherited_widget :
35+ name : Inherited Widget
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Checkout repository
39+ uses : actions/checkout@v4
40+
41+ - name : Static Analysis & Tests
42+ uses : ./.github/actions/flutter_analysis_and_tests
43+ with :
44+ working-directory : ./inherited_widget
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments