Skip to content

Commit

Permalink
flutter: Run tests on the CI as well
Browse files Browse the repository at this point in the history
Invoked under xvfb, as GH doesn't have X11
  • Loading branch information
iamsergio committed Apr 22, 2024
1 parent 145767f commit 74fcf66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/flutter-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ jobs:
preset:
- name: dev-flutter
isAOT: false
args: []
- name: dev-flutter-asan
isAOT: false
args: ["--asan"]
- name: dev-flutter-aot
isAOT: true
args: ["--aot"]
- name: dev-flutter-aot-asan
isAOT: true
args: ["--aot", "--asan"]

steps:
- name: Checkout sources
Expand All @@ -40,7 +44,7 @@ jobs:
- name: Install dependencies on Ubuntu
run: |
sudo apt update -qq
sudo apt install libgtk-3-dev libglib2.0-dev ninja-build libspdlog-dev lld -y
sudo apt install libgtk-3-dev libglib2.0-dev ninja-build libspdlog-dev lld xvfb -y
- uses: subosito/flutter-action@v2
with:
Expand Down Expand Up @@ -82,3 +86,6 @@ jobs:
run: |
cd examples/flutter
flutter build linux
- name: Run tests
run: xvfb dart run_flutter_tests.dart ${{ join(matrix.preset.args, ' ') }}

0 comments on commit 74fcf66

Please sign in to comment.