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 --version
|
||||
|
||||
- name: Build the app
|
||||
run: flutter build linux
|
||||
|
||||
- name: Check generated files
|
||||
run: git diff --exit-code
|
||||
|
||||
- name: Run lints/tests
|
||||
run: |
|
||||
export PATH=$PATH:$HOME/.local/bin # Needed to ensure pip/pre-commit on PATH
|
||||
@ -99,6 +93,12 @@ jobs:
|
||||
pre-commit run --all-files
|
||||
flutter test
|
||||
|
||||
- name: Build the app
|
||||
run: flutter build linux
|
||||
|
||||
- name: Check generated files
|
||||
run: git diff --exit-code
|
||||
|
||||
- name: Embedd appindicator
|
||||
run: |
|
||||
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 --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
|
||||
run: |
|
||||
pip install pre-commit
|
||||
pre-commit run --all-files
|
||||
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
|
||||
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
|
||||
rev: "4afcaa82fc368d40d486256bf4edba329bf667bb"
|
||||
hooks:
|
||||
- id: flutter-analyze
|
||||
- id: dart-format
|
||||
files: \.dart$
|
||||
require_serial: true
|
||||
- id: flutter-analyze
|
||||
require_serial: true
|
||||
|
||||
# Python
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
|
Loading…
Reference in New Issue
Block a user