Add github workflows (#30)
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
name: Analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analysis:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Fetch Flutter SDK
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 https://github.com/flutter/flutter.git
|
||||||
|
cd flutter
|
||||||
|
git fetch --depth=1 https://github.com/flutter/flutter.git `cat ../bin/internal/flutter.version`
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
|
||||||
|
- name: Install pub dependencies
|
||||||
|
run: flutter/bin/flutter pub get
|
||||||
|
|
||||||
|
- name: Verify formatting
|
||||||
|
run: flutter/bin/dart format --output=none --set-exit-if-changed lib
|
||||||
|
|
||||||
|
- name: Analyze project source
|
||||||
|
run: flutter/bin/dart analyze --fatal-warnings lib
|
||||||
@@ -23,7 +23,7 @@ class ELinuxPackagesCommand extends FlutterCommand {
|
|||||||
ELinuxPackagesCommand() {
|
ELinuxPackagesCommand() {
|
||||||
addSubcommand(ELinuxPackagesGetCommand('get', false));
|
addSubcommand(ELinuxPackagesGetCommand('get', false));
|
||||||
addSubcommand(ELinuxPackagesInteractiveGetCommand('upgrade',
|
addSubcommand(ELinuxPackagesInteractiveGetCommand('upgrade',
|
||||||
'Upgrade the current package\'s dependencies to latest versions.'));
|
"Upgrade the current package's dependencies to latest versions."));
|
||||||
addSubcommand(ELinuxPackagesInteractiveGetCommand(
|
addSubcommand(ELinuxPackagesInteractiveGetCommand(
|
||||||
'add', 'Add a dependency to pubspec.yaml.'));
|
'add', 'Add a dependency to pubspec.yaml.'));
|
||||||
addSubcommand(ELinuxPackagesInteractiveGetCommand(
|
addSubcommand(ELinuxPackagesInteractiveGetCommand(
|
||||||
|
|||||||
@@ -454,7 +454,8 @@ class ELinuxDevice extends Device {
|
|||||||
/// Source: [_maybeUnforwardPort] in `custom_device.dart`
|
/// Source: [_maybeUnforwardPort] in `custom_device.dart`
|
||||||
void _maybeUnforwardPort() {
|
void _maybeUnforwardPort() {
|
||||||
if (_forwardedHostPort != null) {
|
if (_forwardedHostPort != null) {
|
||||||
final ForwardedPort forwardedPort = portForwarder.forwardedPorts.singleWhere((ForwardedPort forwardedPort) {
|
final ForwardedPort forwardedPort = portForwarder.forwardedPorts
|
||||||
|
.singleWhere((ForwardedPort forwardedPort) {
|
||||||
return forwardedPort.hostPort == _forwardedHostPort;
|
return forwardedPort.hostPort == _forwardedHostPort;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user