mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Adds workflow for code linting
This commit is contained in:
parent
c1a1ef0ad2
commit
037564c6a3
5 changed files with 44 additions and 15 deletions
28
.github/workflows/lint.yaml
vendored
Normal file
28
.github/workflows/lint.yaml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Run flutter linting checks
|
||||
|
||||
name: linting
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '12.x'
|
||||
- uses: subosito/flutter-action@v1
|
||||
with:
|
||||
flutter-version: '2.2.3'
|
||||
- run: flutter pub get
|
||||
- run: flutter analyze
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue