Skip to content

Commit

Permalink
test: move integration tests to dart (#279)
Browse files Browse the repository at this point in the history
* test: prepare dart-based integration test

* prepare server

* move integration tests to dart

* remove original integration-test app

* update CI

* update ci

* ci

* cache in ci

* update ci

* update cache key

* update ci

* update ci

* update expectations

* update matches

* update matchers for web
  • Loading branch information
vaind authored Nov 8, 2024
1 parent 6635212 commit 474376f
Show file tree
Hide file tree
Showing 88 changed files with 331 additions and 1,764 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dart_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- run: scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
if: env.GITHUB_HEAD_REF != null

- run: dart test
- run: dart test --exclude-tags integration

- name: Build
run: |
Expand All @@ -53,7 +53,7 @@ jobs:
id: analysis
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: "Check scores"
- name: 'Check scores'
env:
TOTAL: ${{ steps.analysis.outputs.total }}
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: integration-tests

on:
push:
branches:
- main
- release/**
pull_request:

jobs:
integration-test:
name: ${{ matrix.target }} @ ${{ matrix.host }}
runs-on: ${{ matrix.host }}-latest
strategy:
fail-fast: false
matrix:
include:
- host: macos
target: macos
- host: macos
target: ios
- host: ubuntu
target: linux
- host: ubuntu
target: web
- host: ubuntu
target: android
- host: windows
target: windows
env:
TEST_PLATFORM: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 #2.16.0

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- run: sudo apt-get install ninja-build libgtk-3-dev
if: runner.os == 'Linux'

- run: (flutter --version)[0] | Out-File flutter.version
shell: pwsh

- uses: actions/cache@v4
with:
path: temp/testapp-${{ matrix.target }}
key: integration-test-${{ matrix.host }}-${{ matrix.target }}-${{ hashFiles('flutter.version') }}

- run: dart test --tags integration
41 changes: 0 additions & 41 deletions .github/workflows/integration-tests-sentry-cli.yml

This file was deleted.

44 changes: 0 additions & 44 deletions integration-test/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions integration-test/.metadata

This file was deleted.

17 changes: 0 additions & 17 deletions integration-test/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions integration-test/android/.gitignore

This file was deleted.

84 changes: 0 additions & 84 deletions integration-test/android/app/build.gradle

This file was deleted.

8 changes: 0 additions & 8 deletions integration-test/android/app/src/debug/AndroidManifest.xml

This file was deleted.

34 changes: 0 additions & 34 deletions integration-test/android/app/src/main/AndroidManifest.xml

This file was deleted.

12 changes: 0 additions & 12 deletions integration-test/android/app/src/main/cpp/.gitignore

This file was deleted.

Loading

0 comments on commit 474376f

Please sign in to comment.