-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Android integration tests run on non wsl windows (#1175)
* Allow tests to get output from flank on windows * Added non wsl windows workflow file * Update windows-non-wsl-workflow.yml * Minor fixes for windows build * Neaten CommandHHelper and add misisng bat file * Name change * PR comments 1 * PR comments 2 * Return type removal * Return type removal #2 Co-authored-by: Michael Wright <[email protected]>
- Loading branch information
1 parent
563d155
commit c6bc9fb
Showing
4 changed files
with
106 additions
and
19 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,51 @@ | ||
name: Flank Windows | ||
|
||
on: | ||
pull_request_review: | ||
types: submitted | ||
|
||
jobs: | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-2019 | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-2-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-2-gradle- | ||
- name: Set GCLOUD_KEY for WINDOWS | ||
shell: cmd | ||
run: | | ||
echo ${{ secrets.GCLOUD_KEY }} > gcloud_key.txt | ||
- name: Gradle clean build | ||
shell: cmd | ||
run: | | ||
gradlew.bat clean build | ||
- name: Prepare Google Service Account | ||
shell: cmd | ||
run: | | ||
set GCLOUD_DIR="%HOMEPATH%/.config/gcloud/" | ||
mkdir %GCLOUD_DIR% | ||
echo certutil -decode gcloud_key.txt %GCLOUD_DIR%application_default_credentials.json | ||
- name: Check pull request is approved | ||
uses: jrylan/github-action-reviews-counter@main | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
- name: Gradle Integration Tests Android | ||
if: 'steps.reviews.outputs.approved >= 2 && steps.reviews.outputs.changes_requested == 0 && github.event.pull_request.draft == false' | ||
uses: eskatos/gradle-command-action@v1 | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
with: | ||
arguments: "--info :integration_tests:test --tests IntegrationTests.shouldMatchAndroidSuccessExitCodeAndPattern -Dflank-path=../test_runner/build/libs/flank.jar -Dyml-path=./src/test/resources/flank_android.yml" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
for %%F in (%filename%) do set dirname=%%~dpF | ||
echo "%dirname%" | ||
cd .. | ||
cd .. | ||
call gradlew.bat clean assemble shadowjar | ||
cd test_runner\bash |
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