-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
6a29b77
commit 49627e2
Showing
5 changed files
with
85 additions
and
77 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
name: PR Checlk | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/test.yml | ||
secrets: inherit |
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,43 @@ | ||
name: Release to pub.dev | ||
|
||
on: | ||
workflow_dispatch: | ||
push: #todo:remove | ||
release: | ||
types: [ created ] | ||
|
||
|
||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/test.yml | ||
secrets: inherit | ||
|
||
publish: | ||
name: Publish | ||
permissions: | ||
id-token: write # This is required for authentication using OIDC | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: dart-lang/setup-dart@v1 | ||
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Add pub token | ||
run: echo ${{secrets.OAUTH_ACCESS_TOKEN}} | dart pub token add https://pub.dev | ||
|
||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: code format | ||
run: dart format lib/*/*.dart lib/*.dart | ||
|
||
- name: Publish pkg | ||
run: dart pub publish --server=https://pub.dartlang.org -f |
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,30 @@ | ||
name: Test | ||
|
||
on: | ||
push: #todo:remove | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Install packages dependencies | ||
run: flutter pub get | ||
|
||
- name: Analyze the project's Dart code | ||
run: flutter analyze | ||
|
||
- name: Run tests | ||
run: flutter test | ||
|
||
- name: Run tests coverage | ||
run: flutter test --coverage |
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