mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 08:22:16 +03:00
Run flutter hooks sequentially.
This commit is contained in:
parent
1452bc0d70
commit
b40451ab75
12
.github/workflows/linux.yml
vendored
12
.github/workflows/linux.yml
vendored
@ -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
|
||||||
|
10
.github/workflows/windows.yml
vendored
10
.github/workflows/windows.yml
vendored
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user