-
-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub Action dart-package-analyzer.yml #84
Conversation
178db0c
to
fbc9a59
Compare
@axel-op Your review please. |
This repo is actually not a package (it does not respect the package layout conventions), that's why these checks are failing (there is no |
Thanks @axel-op I am not a Dart guy... What is the best way to create a GitHub Action that behaves like |
@cclauss Try something like this: name: Analyze
on: [push, pull_request]
jobs:
analyze:
runs-on: ubuntu-latest
container: google/dart:2
steps:
- uses: actions/checkout@v2
- name: Analyze
run: dart analyze
- name: Format
run: |
OUTPUT=$(dart format . -o none)
if [ ! -z "$OUTPUT" ]; then exit 1; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@cclauss You're welcome! |
@axel-op I changed
Merci beaucoup! |
@chimon2000 Your review, please?
Output: https://github.com/TheAlgorithms/Dart/runs/1253813888
Related to #86, #87, and #88
Welcome to Dart community
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.