mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-16 17:05:17 +00:00
cd: add pr-lint workflow
This commit is contained in:
parent
875aab1e2c
commit
e74d880bac
26
.github/workflows/pr-lint.yml
vendored
Normal file
26
.github/workflows/pr-lint.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
FLUTTER_VERSION: '3.16.0'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
|
|
||||||
|
- name: Lint Dart files
|
||||||
|
run: |
|
||||||
|
flutter pub get
|
||||||
|
flutter analyze .
|
||||||
|
|
||||||
|
- name: Lint translations & config files
|
||||||
|
run: |
|
||||||
|
jsonlint -q -D --enforce-double-quotes ./lib/l10n/*.arb
|
||||||
|
jsonlint -q -D --enforce-double-quotes -T .vscode/*.json
|
Loading…
Reference in New Issue
Block a user