Skip to content

Commit

Permalink
maestro_cli v0.3.4, maestro_test 0.3.3 (#112)
Browse files Browse the repository at this point in the history
* maestro_test: set version to 0.3.3

* maestro_cli: set version to 0.3.4

* maestro_cli-publish workflow: upload to pub.dev at the end
  • Loading branch information
bartekpacia authored Jul 19, 2022
1 parent 6d2be73 commit 6f4205f
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 36 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/maestro_cli-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,9 @@ jobs:
- name: Check if versions are defined consistently
run: ./check_versions

publish_cli:
runs-on: ubuntu-latest
needs: check_versions

defaults:
run:
working-directory: packages/maestro_cli

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Download pub.dev credentials
env:
CREDENTIALS: ${{ secrets.PUB_DEV_CREDENTIALS }}
run: |
mkdir -p ~/.pub-cache
echo $CREDENTIALS > ~/.pub-cache/credentials.json
- name: Publish
run: dart pub publish -f

upload_artifacts:
runs-on: ubuntu-latest
needs: publish_cli
needs: check_versions

defaults:
run:
Expand Down Expand Up @@ -113,3 +86,30 @@ jobs:
run: |
./upload_artifact ${{ env.SERVER_FILE }}
./upload_artifact ${{ env.INSTRUMENTATION_FILE }}
publish_cli:
runs-on: ubuntu-latest
needs: upload_artifacts

defaults:
run:
working-directory: packages/maestro_cli

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Download pub.dev credentials
env:
CREDENTIALS: ${{ secrets.PUB_DEV_CREDENTIALS }}
run: |
mkdir -p ~/.pub-cache
echo $CREDENTIALS > ~/.pub-cache/credentials.json
- name: Publish
run: dart pub publish -f
2 changes: 1 addition & 1 deletion AutomatorServer/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
minSdkVersion 26
targetSdkVersion 31
versionCode 1
versionName "0.3.3"
versionName "0.3.4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/maestro_cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.4

- Improve output of `maestro drive`

## 0.3.3

- Fix a crash which occured when ADB daemon was not initialized
Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_cli/lib/src/common/constants.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Version of Maestro CLI. Must be kept in sync with pubspec.yaml.
const version = '0.3.3';
const version = '0.3.4';

const maestroPackage = 'maestro_test';
const maestroCliPackage = 'maestro_cli';
Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_cli/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: maestro_cli
description: CLI for Maestro.
version: 0.3.3
version: 0.3.4
homepage: https://github.com/leancodepl/maestro

environment:
Expand Down
6 changes: 6 additions & 0 deletions packages/maestro_test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.3.3

- Make it possible to pass Flutter's `Finder` to `$`
- Make `MaestroFinder.first`, `MaestroFinder.last`, `MaestroFinder.at()` return
`MaestroFinder`, not `Finder`

## 0.3.2

- Improve selector engine:
Expand Down
11 changes: 7 additions & 4 deletions packages/maestro_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add `maestro_test` as a dev dependency in `pubspec.yaml`:

```
dev_dependencies:
maestro_test: ^0.3.2
maestro_test: ^0.3.3
```

### Accessing native platform features
Expand Down Expand Up @@ -74,11 +74,14 @@ void main() {
// box1 which is a descendant of a Scaffold widget and tap on it.
await $(Scaffold).$(#box1).$('Log in').tap();
// Selects the first Scrollable which has a Text descendant
// Selects all Scrollables which have Text descendant
$(Scrollable).withDescendant(Text);
// Selects the first Scrollable which has a Button descendant which has a Text descendant
$(Scrollable).withDescendant($(Text).withDescendant(Text));
// Selects all Scrollables which have a Button descendant which has a Text descendant
$(Scrollable).withDescendant($(Button).withDescendant(Text));
// Selects all Scrollables which have a Button descendant and a Text descendant
$(Scrollable).withDescendant(Button).withDescendant(Text);
},
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/maestro_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: maestro_test
description: >
Simple, easy-to-learn, Flutter-native UI testing framework eliminating
limitations of flutter_driver
version: 0.3.2
version: 0.3.3
homepage: https://github.com/leancodepl/maestro/tree/master/packages/maestro_test

environment:
Expand Down

0 comments on commit 6f4205f

Please sign in to comment.