From 8b0cf1989bdaef1d33311e3119e17be18064e8c6 Mon Sep 17 00:00:00 2001 From: ahmednfwela Date: Sat, 30 Nov 2024 04:09:51 -0800 Subject: [PATCH] added linux and windows --- .github/workflows/tests.yaml | 40 +++++++++++++++++++++++++++++++++++- melos.yaml | 16 +++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fc6f7c7..d34fc8e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -219,5 +219,43 @@ jobs: - name: Upload Coverage Report uses: actions/upload-artifact@v4 with: - name: ios-coverage.info + name: macos-coverage.info path: packages/oidc/example/macos-coverage.info + linux: + runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/oidc/example + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Set up Environment + uses: ./.github/actions/integration_test_base + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev liblzma-dev + - name: Integration Tests + run: melos run integration_test:linux + - name: Upload Coverage Report + uses: actions/upload-artifact@v4 + with: + name: linux-coverage.info + path: packages/oidc/example/linux-coverage.info + windows: + runs-on: windows-latest + defaults: + run: + working-directory: packages/oidc/example + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Set up Environment + uses: ./.github/actions/integration_test_base + - name: Integration Tests + run: melos run integration_test:windows + - name: Upload Coverage Report + uses: actions/upload-artifact@v4 + with: + name: windows-coverage.info + path: packages/oidc/example/windows-coverage.info diff --git a/melos.yaml b/melos.yaml index 0381632..f109fe5 100644 --- a/melos.yaml +++ b/melos.yaml @@ -120,6 +120,22 @@ scripts: dirExists: - integration_test - macos + integration_test:linux: + name: Flutter Linux Integration tests + exec: xvfb-run flutter test integration_test --coverage -d linux --coverage-path linux-coverage.info --dart-define=CI=true + packageFilters: + flutter: true + dirExists: + - integration_test + - linux + integration_test:windows: + name: Flutter Windows Integration tests + exec: xvfb-run flutter test integration_test --coverage -d windows --coverage-path windows-coverage.info --dart-define=CI=true + packageFilters: + flutter: true + dirExists: + - integration_test + - windows # for reference: https://github.com/firebase/flutterfire/blob/d41e30a808b47458d7ebd402862bcd55d8563ccb/.github/workflows/e2e_tests.yaml#L281-L289 # integration_test:chrome: # name: Flutter Chrome Integration tests