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