-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36efa03
commit 2c1c11d
Showing
29 changed files
with
5,992 additions
and
22 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,22 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
notifications: | ||
commits: [email protected] | ||
issues: [email protected] | ||
pullrequests_status: [email protected] | ||
pullrequests_comment: [email protected] |
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,23 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
root: true | ||
extends: '@cordova/eslint-config/browser' | ||
|
||
overrides: | ||
- files: [tests/**/*.js] | ||
extends: '@cordova/eslint-config/node-tests' |
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 @@ | ||
* text eol=lf |
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,42 @@ | ||
<!-- | ||
Please have a look at the issue templates you get when you click "New issue" in the GitHub UI. | ||
We very much prefer issues created by using one of these templates. | ||
--> | ||
|
||
### Issue Type | ||
<!-- Please check the boxes by putting an x in the [ ] like so: [x] --> | ||
|
||
- [ ] Bug Report | ||
- [ ] Feature Request | ||
- [ ] Support Question | ||
|
||
## Description | ||
|
||
## Information | ||
<!-- Include all relevant information that might help understand and reproduce the problem --> | ||
|
||
### Command or Code | ||
<!-- What command or code is needed to reproduce the problem? --> | ||
|
||
### Environment, Platform, Device | ||
<!-- In what environment, on what platform or on which device are you experiencing the issue? --> | ||
|
||
|
||
|
||
### Version information | ||
<!-- | ||
What are relevant versions you are using? | ||
For example: | ||
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins | ||
Other Frameworks: Ionic Framework and CLI version | ||
Operating System, Android Studio, Xcode etc. | ||
--> | ||
|
||
|
||
|
||
## Checklist | ||
<!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` --> | ||
|
||
- [ ] I searched for already existing GitHub issues about this | ||
- [ ] I updated all Cordova tooling to their most recent version | ||
- [ ] I included all the necessary information above |
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,50 @@ | ||
--- | ||
name: 🐛 Bug Report | ||
about: If something isn't working as expected. | ||
|
||
--- | ||
|
||
# Bug Report | ||
|
||
## Problem | ||
|
||
### What is expected to happen? | ||
|
||
|
||
|
||
### What does actually happen? | ||
|
||
|
||
|
||
## Information | ||
<!-- Include all relevant information that might help understand and reproduce the problem --> | ||
|
||
|
||
|
||
### Command or Code | ||
<!-- What command or code is needed to reproduce the problem? --> | ||
|
||
|
||
|
||
### Environment, Platform, Device | ||
<!-- In what environment, on what platform or on which device are you experiencing the issue? --> | ||
|
||
|
||
|
||
### Version information | ||
<!-- | ||
What are relevant versions you are using? | ||
For example: | ||
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins | ||
Other Frameworks: Ionic Framework and CLI version | ||
Operating System, Android Studio, Xcode etc. | ||
--> | ||
|
||
|
||
|
||
## Checklist | ||
<!-- Please check the boxes by putting an x in the [ ] like so: [x] --> | ||
|
||
- [ ] I searched for existing GitHub issues | ||
- [ ] I updated all Cordova tooling to most recent version | ||
- [ ] I included all the necessary information above |
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,29 @@ | ||
--- | ||
name: 🚀 Feature Request | ||
about: A suggestion for a new functionality | ||
|
||
--- | ||
|
||
# Feature Request | ||
|
||
## Motivation Behind Feature | ||
<!-- Why should this feature be implemented? What problem does it solve? --> | ||
|
||
|
||
|
||
## Feature Description | ||
<!-- | ||
Describe your feature request in detail | ||
Please provide any code examples or screenshots of what this feature would look like | ||
Are there any drawbacks? Will this break anything for existing users? | ||
--> | ||
|
||
|
||
|
||
## Alternatives or Workarounds | ||
<!-- | ||
Describe alternatives or workarounds you are currently using | ||
Are there ways to do this with existing functionality? | ||
--> | ||
|
||
|
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,27 @@ | ||
--- | ||
name: 💬 Support Question | ||
about: If you have a question, please check out our Slack or StackOverflow! | ||
|
||
--- | ||
|
||
<!------------^ Click "Preview" for a nicer view! --> | ||
|
||
Apache Cordova uses GitHub Issues as a feature request and bug tracker _only_. | ||
For usage and support questions, please check out the resources below. Thanks! | ||
|
||
--- | ||
|
||
You can get answers to your usage and support questions about **Apache Cordova** on: | ||
|
||
* Slack Community Chat: https://cordova.slack.com (you can sign-up at http://slack.cordova.io/) | ||
* StackOverflow: https://stackoverflow.com/questions/tagged/cordova using the tag `cordova` | ||
|
||
--- | ||
|
||
If you are using a tool that uses Cordova internally, like e.g. Ionic, check their support channels: | ||
|
||
* **Ionic Framework** | ||
* [Ionic Community Forum](https://forum.ionicframework.com/) | ||
* [Ionic Worldwide Slack](https://ionicworldwide.herokuapp.com/) | ||
* **PhoneGap** | ||
* [PhoneGap Developer Community](https://forums.adobe.com/community/phonegap) |
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,35 @@ | ||
<!-- | ||
Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: | ||
http://cordova.apache.org/contribute/contribute_guidelines.html | ||
Thanks! | ||
--> | ||
|
||
### Platforms affected | ||
|
||
|
||
|
||
### Motivation and Context | ||
<!-- Why is this change required? What problem does it solve? --> | ||
<!-- If it fixes an open issue, please link to the issue here. --> | ||
|
||
|
||
|
||
### Description | ||
<!-- Describe your changes in detail --> | ||
|
||
|
||
|
||
### Testing | ||
<!-- Please describe in detail how you tested your changes. --> | ||
|
||
|
||
|
||
### Checklist | ||
|
||
- [ ] I've run the tests to see all new and existing tests pass | ||
- [ ] I added automated test coverage as appropriate for this change | ||
- [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`) | ||
- [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/)) | ||
- [ ] I've updated the documentation if necessary |
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,137 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
name: Android Testsuite | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- 'LICENSE' | ||
- '.eslint*' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- 'LICENSE' | ||
- '.eslint*' | ||
|
||
jobs: | ||
test: | ||
name: Android ${{ matrix.versions.android }} Test | ||
runs-on: macos-latest | ||
continue-on-error: true | ||
|
||
# hoist configurations to top that are expected to be updated | ||
env: | ||
# Storing a copy of the repo | ||
repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | ||
|
||
node-version: 16 | ||
|
||
# These are the default Java configurations used by most tests. | ||
# To customize these options, add "java-distro" or "java-version" to the strategy matrix with its overriding value. | ||
default_java-distro: temurin | ||
default_java-version: 11 | ||
|
||
# These are the default Android System Image configurations used by most tests. | ||
# To customize these options, add "system-image-arch" or "system-image-target" to the strategy matrix with its overriding value. | ||
default_system-image-arch: x86_64 | ||
default_system-image-target: google_apis # Most system images have a google_api option. Set this as default. | ||
|
||
# configurations for each testing strategy (test matrix) | ||
strategy: | ||
matrix: | ||
versions: | ||
# Test the lowest minimum supported APIs | ||
- android: 5.1 | ||
android-api: 22 | ||
|
||
# Test the last 3-4 supported APIs | ||
- android: 10 | ||
android-api: 29 | ||
|
||
- android: 11 | ||
android-api: 30 | ||
|
||
- android: 12 | ||
android-api: 31 | ||
|
||
- android: 12L | ||
android-api: 32 | ||
|
||
timeout-minutes: 60 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.node-version }} | ||
- uses: actions/setup-java@v3 | ||
env: | ||
java-version: ${{ matrix.versions.java-version == '' && env.default_java-version || matrix.versions.java-version }} | ||
java-distro: ${{ matrix.versions.java-distro == '' && env.default_java-distro || matrix.versions.java-distro }} | ||
with: | ||
distribution: ${{ env.java-distro }} | ||
java-version: ${{ env.java-version }} | ||
|
||
- name: Run Environment Information | ||
run: | | ||
node --version | ||
npm --version | ||
java -version | ||
- name: Run npm install | ||
run: | | ||
export PATH="/usr/local/lib/android/sdk/platform-tools":$PATH | ||
export JAVA_HOME=$JAVA_HOME_11_X64 | ||
npm i -g cordova@latest | ||
npm ci | ||
- name: Run paramedic install | ||
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }} | ||
run: npm i -g github:apache/cordova-paramedic | ||
|
||
- uses: reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e | ||
env: | ||
system-image-arch: ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }} | ||
system-image-target: ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }} | ||
with: | ||
api-level: ${{ matrix.versions.android-api }} | ||
target: ${{ env.system-image-target }} | ||
arch: ${{ env.system-image-arch }} | ||
force-avd-creation: false | ||
disable-animations: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim | ||
script: echo "Pregenerate the AVD before running Paramedic" | ||
|
||
- name: Run paramedic tests | ||
uses: reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e | ||
env: | ||
system-image-arch: ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }} | ||
system-image-target: ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }} | ||
test_config: 'android-${{ matrix.versions.android }}.config.json' | ||
# Generally, this should automatically work for cordova-paramedic & plugins. If the path is unique, this can be manually changed. | ||
test_plugin_path: ${{ endswith(env.repo, '/cordova-paramedic') && './spec/testable-plugin/' || './' }} | ||
paramedic: ${{ endswith(env.repo, '/cordova-paramedic') && 'node main.js' || 'cordova-paramedic' }} | ||
with: | ||
api-level: ${{ matrix.versions.android-api }} | ||
target: ${{ env.system-image-target }} | ||
arch: ${{ env.system-image-arch }} | ||
force-avd-creation: false | ||
disable-animations: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim | ||
script: ${{ env.paramedic }} --config ./pr/local/${{ env.test_config }} --plugin ${{ env.test_plugin_path }} |
Oops, something went wrong.