-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into revert-to-core22
- Loading branch information
Showing
67 changed files
with
4,618 additions
and
791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"flutter": "3.24.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,23 +12,23 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- uses: Atsumi3/actions[email protected] | ||
- uses: bluefireteam/melos-action@v3 | ||
- run: melos analyze | ||
|
||
format: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- uses: Atsumi3/actions[email protected] | ||
- uses: bluefireteam/melos-action@v3 | ||
- run: melos format | ||
|
||
mocks: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- uses: Atsumi3/actions[email protected] | ||
- uses: bluefireteam/melos-action@v3 | ||
- run: melos generate | ||
- name: Check for outdated mocks | ||
|
@@ -48,7 +48,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- uses: Atsumi3/actions[email protected] | ||
- uses: bluefireteam/melos-action@v3 | ||
- run: melos gen-l10n | ||
- name: Check for outdated l10n | ||
|
@@ -68,7 +68,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- uses: Atsumi3/actions[email protected] | ||
- uses: bluefireteam/melos-action@v3 | ||
- run: sudo apt update && sudo apt install -y lcov | ||
- run: melos coverage | ||
|
@@ -80,22 +80,30 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- uses: Atsumi3/actions[email protected] | ||
- uses: bluefireteam/melos-action@v3 | ||
- run: sudo apt update | ||
- run: sudo apt install -y clang cmake curl dbus dbus-x11 fwupd fwupd-tests gsettings-desktop-schemas libgtk-3-dev ninja-build pkg-config unzip upower xvfb | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
- name: Flutter version | ||
run: flutter --version | ||
|
||
- name: Prepare environment | ||
run: | | ||
sudo sed -i 's/DisabledPlugins=.*/DisabledPlugins=invalid;bios/g' /etc/fwupd/daemon.conf | ||
echo "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/bus" >> $GITHUB_ENV | ||
echo "XDG_RUNTIME_DIR=/run/user/$UID" >> $GITHUB_ENV | ||
echo "FLUTTER_ROOT=$(asdf where flutter)" >> $GITHUB_ENV | ||
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru' | ||
- run: sudo fwupdmgr enable-remote fwupd-tests | ||
- run: sudo fwupdmgr get-devices | ||
- run: | | ||
- name: Setup fwupd tests | ||
run: | | ||
sudo fwupdmgr enable-remote fwupd-tests | ||
sudo fwupdmgr get-devices | ||
- name: Run integration tests | ||
run: | | ||
cd packages/firmware_updater && \ | ||
sudo -E xvfb-run -a -s '-screen 0 1024x768x24 +extension GLX' \ | ||
$FLUTTER_ROOT/bin/flutter test integration_test | ||
sudo -E env PATH=$PATH xvfb-run -a -s '-screen 0 1024x768x24 +extension GLX' \ | ||
flutter test integration_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,6 @@ app.*.map.json | |
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
# FVM Version Cache | ||
.fvm/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,73 @@ | ||
name: firmware_updater_workspace | ||
sdkPath: .fvm/flutter_sdk | ||
|
||
packages: | ||
- packages/** | ||
- packages/* | ||
|
||
command: | ||
bootstrap: | ||
environment: | ||
sdk: ">=3.0.0 <4.0.0" | ||
flutter: '>=3.13.7' | ||
sdk: '>=3.1.0 <4.0.0' | ||
flutter: '>=3.24.3' | ||
|
||
dev_dependencies: | ||
ubuntu_lints: ^0.3.0 | ||
ubuntu_lints: ^0.4.0 | ||
|
||
scripts: | ||
# analyze all packages | ||
analyze: > | ||
melos exec -c 1 -- \ | ||
flutter analyze --fatal-infos . | ||
# build all packages | ||
build: > | ||
melos exec -c 1 --fail-fast --flutter --dir-exists=linux -- \ | ||
flutter build linux | ||
fvm flutter build linux | ||
# collect coverage information for all packages | ||
coverage: > | ||
melos exec -c 1 --fail-fast --dir-exists=test --ignore='*builder*' -- \ | ||
flutter test --coverage && melos run coverage:cleanup | ||
melos exec -c 1 --fail-fast --dir-exists=test -- \ | ||
fvm flutter test --coverage && melos run coverage:cleanup | ||
# cleanup generated files from coverage | ||
coverage:cleanup: > | ||
melos exec --file-exists=coverage/lcov.info -- \ | ||
lcov --remove coverage/lcov.info '**/*.g.dart' -o coverage/lcov.info | ||
lcov --remove coverage/lcov.info \ | ||
'**/*.freezed.dart' \ | ||
'**/*.g.dart' \ | ||
'**/*.mocks.dart' \ | ||
'**/l10n/*.dart' \ | ||
'**/*.pb*.dart' \ | ||
-o coverage/lcov.info | ||
|
||
# format all packages | ||
format: > | ||
format:exclude: > | ||
find . -name '*.dart' \ | ||
! -name '*.freezed.dart' \ | ||
! -name '*.g.dart' \ | ||
! -name '*.mocks.dart' \ | ||
! -path '*/l10n/*.dart' \ | ||
! -name '*.pb*.dart' \ | ||
! -path '*/.*/*' \ | ||
| xargs dart format | ||
| xargs fvm dart format --set-exit-if-changed | ||
|
||
# run build_runner to generate code in all packages | ||
generate: > | ||
melos exec -c 1 --fail-fast --depends-on=build_runner -- \ | ||
dart run build_runner build --delete-conflicting-outputs | ||
fvm dart run build_runner build --delete-conflicting-outputs | ||
# run gen-l10n to generate localizations in all packages | ||
gen-l10n: > | ||
melos exec -c 1 --fail-fast --dir-exists=lib/l10n -- \ | ||
flutter gen-l10n | ||
melos exec -c 1 --fail-fast --depends-on=flutter_localizations -- \ | ||
fvm flutter gen-l10n | ||
# run integration tests in all packages | ||
integration_test: > | ||
melos exec -c 1 --fail-fast --dir-exists=integration_test -- \ | ||
flutter test integration_test | ||
fvm flutter test integration_test | ||
# runs "flutter pub <arg(s)>" in all packages | ||
pub: melos exec -c 1 -- flutter pub "$@" | ||
pub: melos exec -c 1 -- fvm flutter pub "$@" | ||
|
||
# run tests in all packages | ||
test: > | ||
melos exec -c 1 --fail-fast --dir-exists=test -- \ | ||
flutter test | ||
fvm flutter test | ||
# run pub upgrade in all packages | ||
upgrade: melos pub upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.fvmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.