Skip to content

Commit

Permalink
Merge pull request #152 from osociety/run-win-check
Browse files Browse the repository at this point in the history
Run windows check on PR conditionally
git-elliot authored Mar 31, 2024
2 parents 1bb8e2e + bfea428 commit 9ae5a53
Showing 5 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flutter_release.yml
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ jobs:
SUPPLY_PACKAGE_NAME: '${{ secrets.ANDROID_PACKAGE_NAME }}'
SUPPLY_JSON_KEY_DATA: '${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}'
working-directory: android/
run: bundle exec fastlane android deploy
run: bundle exec fastlane android ${{ github.event.release.prerelease && 'beta' || 'deploy' }}

- name: Build Android App and Linux Bundle
# Use signing keys for release instead of debug
38 changes: 36 additions & 2 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ jobs:
linux: ${{ steps.filter.outputs.linux }}
macos: ${{ steps.filter.outputs.macos }}
yaml: ${{ steps.filter.outputs.yaml }}
windows: ${{ steps.filter.outputs.windows }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
@@ -42,6 +43,8 @@ jobs:
- 'macos/**'
yaml:
- '*.yaml'
windows:
- 'windows/**'
android-linux-build:
name: 'Android / Linux Build'
@@ -164,6 +167,37 @@ jobs:
- name: Run tests
run: flutter test

- name: Build macos release
- name: Build macos
run: flutter build macos


windows-build:
name: 'Windows Build'
needs: changes
if: ${{ needs.changes.outputs.lib == 'true' || needs.changes.outputs.test == 'true' || needs.changes.outputs.windows == 'true' || needs.changes.outputs.yaml == 'true' }}
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Flutter action
uses: subosito/flutter-action@v2.8.0
with:
channel: stable

- name: Download pub dependencies
run: flutter pub get

- name: Upgrade pub dependencies
run: flutter pub upgrade

- name: Run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Run analyzer
run: flutter analyze

- name: Run tests
run: flutter test

- name: Build windows
run: flutter build windows
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run checks for windows and publish beta on android for prerelease publish
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run checks for windows and publish beta on android for prerelease publish
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ description: A Network Analyzer

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.5+21
version: 1.0.5+22

environment:
sdk: ">=2.17.0 <3.0.0"

0 comments on commit 9ae5a53

Please sign in to comment.