-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from leancodepl/chore/add-github-actions-mobile
Chore/add GitHub actions mobile
- Loading branch information
Showing
3 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: leancode_app_rating publish | ||
|
||
on: | ||
push: | ||
tags: ['leancode_app_rating-v*'] | ||
|
||
jobs: | ||
publish: | ||
name: Publish to pub.dev | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write | ||
|
||
defaults: | ||
run: | ||
working-directory: mobile | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: 3.5.3 | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: 3.24.x | ||
cache: true | ||
|
||
- name: Publish and release | ||
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 | ||
with: | ||
path: mobile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: leancode_app_rating test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
tags-ignore: ['leancode_app_rating-v*'] | ||
paths: | ||
- 'mobile/**' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'mobile/**' | ||
|
||
jobs: | ||
test: | ||
name: Flutter ${{ matrix.channel }}${{ matrix.version }} | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- version: 3.24.x | ||
|
||
defaults: | ||
run: | ||
working-directory: mobile | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: ${{ matrix.channel }} | ||
cache: true | ||
flutter-version: ${{ matrix.version }} | ||
|
||
- name: Flutter version | ||
run: flutter --version | ||
|
||
- name: Download pub dependencies | ||
run: flutter pub get | ||
|
||
- name: Run analyzer | ||
run: | | ||
flutter analyze | ||
- name: Dry run pub publish | ||
# We don't want it to fail the CI, it's just to see how would `pub publish` behave. | ||
run: flutter pub publish --dry-run || true | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
flags: leancode_app_rating |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters