Skip to content

Commit

Permalink
Code style check on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinVignal committed May 2, 2021
1 parent c6fbd1a commit 9a2a292
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check_code_style_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Code Style Pull Request

on: [pull_request]


jobs:
linter:
runs-on: ubuntu-latest
name: Lint flutter code
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v1
- run: flutter pub get
- name: Analyze Flutter
uses: ValentinVignal/[email protected]
with:
fail-on: 'format'
line-length: 100
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Code Style
name: Code Style Push

on: [push, pull_request]
on: [push]

jobs:
check-code-style:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Setup Flutter
Expand All @@ -18,3 +17,4 @@ jobs:
run: flutter pub get
- name: Analyze the source code
run: flutter analyze

0 comments on commit 9a2a292

Please sign in to comment.