Skip to content

Commit

Permalink
Added dart package check action in github
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish Sharma authored and pocha committed Jun 22, 2022
1 parent 3ac18df commit 086d1a3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dart-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Example workflow
on: [push, pull_request]

jobs:

package-analysis:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2 # required

- uses: axel-op/dart-package-analyzer@v3
with:
# Required:
githubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional:
# relativePath: packages/mypackage/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ We will be putting resources that we referred for someone new to figure out why
- [Learning Layout](https://docs.flutter.dev/development/ui/layout)
- [Learning about Forms](https://docs.flutter.dev/cookbook/forms)

**Package code check**
- [Dart Flutter Package Analyzer](https://github.com/marketplace/actions/dart-flutter-package-analyzer)

### Current app screenshot
![alt text](https://user-images.githubusercontent.com/59445453/173862121-d1f7acfb-8b6c-431a-a351-96cfe9751832.png)

Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ packages:
source: hosted
version: "2.1.2"
sdks:
dart: ">=2.17.3 <3.0.0"
dart: ">=2.17.1 <3.0.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.17.3 <3.0.0"
sdk: ">=2.17.1 <3.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down

0 comments on commit 086d1a3

Please sign in to comment.