From 68e25f741b36a50c030d785d5c5cb8b172236ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asc=C3=AAnio=20Sanderson?= Date: Sun, 7 Jul 2024 19:21:24 -0300 Subject: [PATCH] ci: run integration tests --- .github/workflows/main.yaml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 347df44..654f37c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -42,6 +42,27 @@ jobs: - name: Run tests run: flutter test + integration-testing: + runs-on: macos-latest + environment: Main + steps: + - name: Clone repository + uses: actions/checkout@v4 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.19.4 + - name: Create env file + env: + ENV_FILE: ${{ secrets.ENV_FILE }} + run: printenv ENV_FILE > env.json + - uses: futureware-tech/simulator-action@v3 + with: + model: "iPhone 15" + - name: Run tests + run: flutter test integration_test + building-android: runs-on: ubuntu-latest steps: @@ -67,13 +88,3 @@ jobs: flutter-version: 3.19.4 - name: Generates appbundle run: flutter build ios --no-codesign - - test-env: - runs-on: ubuntu-latest - environment: Main - steps: - - name: Create env file - env: - ENV_FILE: ${{ secrets.ENV_FILE }} - run: printenv ENV_FILE > env.json - - run: cat env.json