forked from jhomlala/alice
-
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.
- Loading branch information
1 parent
a97f42d
commit 7629cd1
Showing
1 changed file
with
22 additions
and
9 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 |
---|---|---|
|
@@ -6,18 +6,31 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
check-format: | ||
name: Check format using dart format. | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ORG_SSH_KEY }} | ||
- uses: dart-lang/[email protected] | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Flutter Action | ||
uses: subosito/flutter-action@v2 | ||
- name: Check format | ||
run: flutter format -n --set-exit-if-changed . | ||
run: dart format . --set-exit-if-changed | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Flutter Action | ||
uses: subosito/flutter-action@v2 | ||
- name: Install Package Dependencies | ||
run: flutter packages get | ||
- name: Get dependencies for example | ||
run: flutter pub get | ||
working-directory: example | ||
- name: Lint using flutter analyze | ||
run: flutter analyze | ||
run: flutter analyze . |