Skip to content

Commit

Permalink
added linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednfwela committed Nov 30, 2024
1 parent 7f0f70e commit 8b0cf19
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b0cf19

Please sign in to comment.