Skip to content

Commit

Permalink
parallelize tests and build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejchm committed Jul 21, 2021
1 parent bf4c059 commit e2e4f1e
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ name: Pull Request Worfklow

on: [pull_request]

env:
FLUTTER_VERSION: '2.2.2'
jobs:
build:
test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.2.2'
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: pub get
run: flutter pub get

Expand All @@ -22,10 +24,24 @@ jobs:

- name: tests
run: flutter test
# TODO reenable it when proper development team is set up in app store connect
# - name: build iOS app
# run: flutter build ios

build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: build Android app
timeout-minutes: 10
run: flutter build appbundle
# TODO reenable it when proper development team is set up in app store connect
# build-ios:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: subosito/flutter-action@v1
# with:
# flutter-version: ${{ env.FLUTTER_VERSION }}
# - name: build Android app
# run: flutter build appbundle

0 comments on commit e2e4f1e

Please sign in to comment.