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

Rel v3.7.7 #933

Merged
merged 8 commits into from
Oct 12, 2023
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
21 changes: 1 addition & 20 deletions .github/workflows/analyze-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
workflow_call:
pull_request:

name: Analyze and test

Expand Down Expand Up @@ -48,22 +48,3 @@ jobs:
with:
name: test-reports
path: test-report*.json

report:
runs-on: ubuntu-latest
if: success() || failure() # Always upload report
needs:
- analyze-test
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: test-reports

- uses: dorny/test-reporter@v1
with:
name: Flutter Tests
path: "*.json"
reporter: flutter-json
only-summary: "true"
18 changes: 2 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
on:
workflow_dispatch:
pull_request:
paths-ignore:
- ".github/**"

name: CI

jobs:
analyze-test:
name: Analyze and test
uses: ./.github/workflows/analyze-test.yaml

build-app:
name: Build app
needs:
- analyze-test
runs-on: ${{ matrix.runner }}
strategy:
matrix:
Expand Down Expand Up @@ -61,14 +52,8 @@ jobs:
if: matrix.os == 'ios'
env:
GOOGLE_SERVICES_PLIST: ${{ secrets.GOOGLE_SERVICES_PLIST }}
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
PROVISION_PROFILE_BASE64: ${{ secrets.PROVISION_PROFILE_BASE64 }}
SHAREEXT_PROVISION_PROFILE_BASE64: ${{ secrets.SHAREEXT_PROVISION_PROFILE_BASE64 }}
run: |
echo -n "$GOOGLE_SERVICES_PLIST" > Runner/GoogleService-Info.plist
echo -n "$CERTIFICATE_BASE64" | base64 --decode --output cert.p12
echo -n "$PROVISION_PROFILE_BASE64" | base64 --decode --output buildpp.mobileprovision
echo -n "$SHAREEXT_PROVISION_PROFILE_BASE64" | base64 --decode --output shareextpp.mobileprovision
flutter pub get && pod install
working-directory: ${{ matrix.os }}

Expand All @@ -84,9 +69,10 @@ jobs:

- name: Build
env:
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
APPLE_CERTIFICATES_SSH_KEY: ${{ secrets.APPLE_CERTIFICATES_SSH_KEY }}
CAPTCHA_TOKEN: ${{ secrets.CAPTCHA_TOKEN }}
SAAS_AVAILABLE: "true"
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: bundle exec fastlane dev
working-directory: ${{ matrix.os }}

Expand Down
20 changes: 3 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ on:
name: Release

jobs:
analyze-test:
name: Analyze and test
uses: ./.github/workflows/analyze-test.yaml

release:
name: Release
if: startsWith(github.ref, 'refs/tags/v')
needs:
- analyze-test
runs-on: ${{ matrix.runner }}
strategy:
matrix:
Expand Down Expand Up @@ -63,16 +57,8 @@ jobs:
if: matrix.os == 'ios'
env:
GOOGLE_SERVICES_PLIST: ${{ secrets.GOOGLE_SERVICES_PLIST }}
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
PROVISION_PROFILE_BASE64: ${{ secrets.PROVISION_PROFILE_BASE64 }}
SHAREEXT_PROVISION_PROFILE_BASE64: ${{ secrets.SHAREEXT_PROVISION_PROFILE_BASE64 }}
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }}
run: |
echo -n "$GOOGLE_SERVICES_PLIST" > Runner/GoogleService-Info.plist
echo -n "$CERTIFICATE_BASE64" | base64 --decode --output cert.p12
echo -n "$PROVISION_PROFILE_BASE64" | base64 --decode --output buildpp.mobileprovision
echo -n "$SHAREEXT_PROVISION_PROFILE_BASE64" | base64 --decode --output shareextpp.mobileprovision
echo -n "$APPLE_API_KEY_BASE64" | base64 --decode --output apiKey.p8
flutter pub get && pod install
working-directory: ${{ matrix.os }}

Expand All @@ -90,11 +76,11 @@ jobs:
env:
CAPTCHA_TOKEN: ${{ secrets.CAPTCHA_TOKEN }}
SAAS_AVAILABLE: "true"
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
FASTLANE_USER: ${{ secrets.APPLE_ID }}
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
APPLE_CERTIFICATES_SSH_KEY: ${{ secrets.APPLE_CERTIFICATES_SSH_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
run: bundle exec fastlane release
working-directory: ${{ matrix.os }}

Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test-reports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
workflow_run:
workflows:
- "Analyze and test"
types:
- completed

name: Test Reports

jobs:
upload-reports:
name: Upload test reports
runs-on: ubuntu-latest
if: success() || failure() # Always upload report
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-reports
name: Flutter Tests
path: "*.json"
reporter: flutter-json
only-summary: "true"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ app.*.symbols
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
!**/Gemfile.lock
!pubspec.lock
!ios/**/Podfile.lock

Expand Down
Loading
Loading