Skip to content

Commit

Permalink
Merge Flutter QA and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Nov 10, 2023
1 parent babf65b commit 286baf3
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ jobs:
matrix:
os: [ubuntu, windows]
package: ["p4w_ms_store", "ubuntupro"]
include:
# We'll be able to run this on Linux eventually and there are gotchas already solved here
# such as the dependency on xvfb since ubuntu runners on GH don't have graphical capabilities.
- os: ubuntu
skip-tests: true
runs-on: ${{ matrix.os }}-latest
steps:
- name: Set up git
Expand Down Expand Up @@ -165,37 +170,9 @@ jobs:
working-directory: gui/packages/${{ matrix.package }}
paths-to-ignore: ${{ matrix.package == 'ubuntupro' && 'pubspec.lock' || '' }}
fail-on-diff: true

flutter-integration:
name: "Flutter integration tests"
strategy:
fail-fast: false
# For now we don't have a way to run integration test on ubuntu.
# It looks silly to keep this matrix, but we'll be able to run this on Linux eventually and there are gotchas already solved here
# such as the dependency on xvfb since ubuntu runners on GH don't have graphical capabilities.
matrix:
os: [windows]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Set up git
# This step needs to be done before checkout so that the checkout respects clrf
uses: canonical/ubuntu-pro-for-windows/.github/actions/setup-git@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Ensure dependencies on Ubuntu
if: ${{ matrix.os == 'ubuntu' }}
run: |
sudo DEBIAN_FRONTEND=noninteractive apt update
sudo DEBIAN_FRONTEND=noninteractive apt install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev unzip xvfb
- name: Check out repository
uses: actions/checkout@v4
- name: Load flutter version
id: load
uses: ./.github/actions/load-json
with:
path: tools/versions.json
- name: Flutter QA
uses: ./.github/actions/flutter-integration-test/
if: matrix.skip-tests == ''
with:
flutter-version: ${{ steps.load.outputs.data.flutter-version }}
go-version-file: windows-agent/go.mod
Expand Down

0 comments on commit 286baf3

Please sign in to comment.