Skip to content

Commit

Permalink
Update pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Oct 3, 2024
1 parent b5ff776 commit 4ffbf96
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4ffbf96

Please sign in to comment.