-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
599420b
commit 1f4f0dc
Showing
1 changed file
with
13 additions
and
7 deletions.
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 |
---|---|---|
|
@@ -2,11 +2,11 @@ name: Run tests and static checks | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
|
@@ -34,12 +34,18 @@ jobs: | |
- name: Run tests | ||
run: flutter test --coverage | ||
validate-for-pub: | ||
name: 'Perform dry run for pub.dev publish' | ||
name: "Perform dry run for pub.dev publish" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dart-lang/setup-dart@v1 | ||
- name: Install dependencies | ||
run: dart pub get | ||
- name: Install and set Flutter version | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: stable | ||
cache: true | ||
# - name: Install dependencies | ||
# run: dart pub get | ||
- name: Publish - dry run | ||
run: dart pub publish --dry-run | ||
run: flutter pub publish --dry-run |