mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
38 lines
810 B
YAML
38 lines
810 B
YAML
name: automatic linting
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
paths:
|
|
- '**.dart'
|
|
|
|
|
|
jobs:
|
|
linting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Flutter
|
|
uses: subosito/flutter-action@v1
|
|
with:
|
|
channel: 'stable'
|
|
|
|
- name: Get dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Check for formatting issues (run "flutter format . ")
|
|
run: flutter format --line-length=100 .
|
|
|
|
- name: Push a commit with the changed files
|
|
continue-on-error: true
|
|
run: |
|
|
git config user.name Github-actions
|
|
git config user.email github-actions@github.com
|
|
git add .
|
|
git commit -m "Automatic linting"
|
|
git push
|