Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run windows check on PR conditionally #152

Merged
merged 4 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/flutter_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 36 additions & 2 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,6 +43,8 @@ jobs:
- 'macos/**'
yaml:
- '*.yaml'
windows:
- 'windows/**'

android-linux-build:
name: 'Android / Linux Build'
Expand Down Expand Up @@ -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
Expand Up @@ -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"
Expand Down
Loading