2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 03:35:28 +00:00

Adds workflow for code linting

This commit is contained in:
Oliver
2021-09-28 12:19:19 +10:00
parent c1a1ef0ad2
commit 037564c6a3
5 changed files with 44 additions and 15 deletions

28
.github/workflows/lint.yaml vendored Normal file
View 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