Run flutter hooks sequentially.

This commit is contained in:
Dain Nilsson 2023-11-30 11:25:20 +01:00
parent 1452bc0d70
commit b40451ab75
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
3 changed files with 15 additions and 12 deletions

View File

@ -86,12 +86,6 @@ jobs:
flutter config --enable-linux-desktop flutter config --enable-linux-desktop
flutter --version flutter --version
- name: Build the app
run: flutter build linux
- name: Check generated files
run: git diff --exit-code
- name: Run lints/tests - name: Run lints/tests
run: | run: |
export PATH=$PATH:$HOME/.local/bin # Needed to ensure pip/pre-commit on PATH export PATH=$PATH:$HOME/.local/bin # Needed to ensure pip/pre-commit on PATH
@ -99,6 +93,12 @@ jobs:
pre-commit run --all-files pre-commit run --all-files
flutter test flutter test
- name: Build the app
run: flutter build linux
- name: Check generated files
run: git diff --exit-code
- name: Embedd appindicator - name: Embedd appindicator
run: | run: |
patchelf --set-rpath '$ORIGIN' build/linux/x64/release/bundle/lib/libtray_manager_plugin.so patchelf --set-rpath '$ORIGIN' build/linux/x64/release/bundle/lib/libtray_manager_plugin.so

View File

@ -49,17 +49,17 @@ jobs:
- run: flutter config --enable-windows-desktop - run: flutter config --enable-windows-desktop
- run: flutter --version - run: flutter --version
- name: Build the app
run: |
$version = python set-version.py | select-object -first 1
flutter build windows --build-name=$version
- name: Run lints/tests - name: Run lints/tests
run: | run: |
pip install pre-commit pip install pre-commit
pre-commit run --all-files pre-commit run --all-files
flutter test flutter test
- name: Build the app
run: |
$version = python set-version.py | select-object -first 1
flutter build windows --build-name=$version
- name: Check generated files - name: Check generated files
run: git diff -I '.*android.*flutter_plugins.*qrscanner_zxing' --exit-code run: git diff -I '.*android.*flutter_plugins.*qrscanner_zxing' --exit-code

View File

@ -3,8 +3,11 @@ repos:
- repo: https://github.com/dluksza/flutter-analyze-pre-commit - repo: https://github.com/dluksza/flutter-analyze-pre-commit
rev: "4afcaa82fc368d40d486256bf4edba329bf667bb" rev: "4afcaa82fc368d40d486256bf4edba329bf667bb"
hooks: hooks:
- id: flutter-analyze
- id: dart-format - id: dart-format
files: \.dart$
require_serial: true
- id: flutter-analyze
require_serial: true
# Python # Python
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8