diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index ffd4051c4..4c62e569e 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -21,13 +21,20 @@ jobs: runs-on: ubuntu-latest steps: - # Checkout code + # Checkout - uses: actions/checkout@v3 + with: + persist-credentials: false + + # Set Flutter version from fvm + - uses: kuhnroyal/flutter-fvm-config-action@v1 # Install Flutter - uses: subosito/flutter-action@v2 with: - flutter-version: '3.7.10' # Specify your Flutter version + channel: ${{ env.FLUTTER_CHANNEL }} + flutter-version: ${{ env.FLUTTER_VERSION }} + # Set up Chromedriver and Chrome - uses: nanasess/setup-chromedriver@v2 @@ -40,9 +47,14 @@ jobs: chromedriver --port=4444 & sleep 5 # Wait for Chromedriver to start - # Get Flutter dependencies - - name: Get Flutter dependencies - run: flutter pub get + - name: Install script_runner + run: flutter pub global activate script_runner + + - name: Build app + run: | + scr setup + flutter config --enable-web + flutter build web --dart-define=environment=development --release --pwa-strategy=none --no-web-resources-cdn --dart2js-optimization=O1 # Run Flutter integration tests - name: Run Flutter Integration Tests