Skip to content

Commit 7dd89d9

Browse files
committed
Update workflows, run all tests
1 parent 8dd1343 commit 7dd89d9

File tree

3 files changed

+63
-38
lines changed

3 files changed

+63
-38
lines changed
Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
1-
name: "App Validation"
1+
name: "Validate"
22
description: "Runs lint, format, and test on an app"
33
inputs:
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+
712
runs:
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
@@ -47,8 +36,21 @@ runs:
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 }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

.github/workflows/validation.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)