-
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.
Merge branch 'master' into #1178-rewrite_scripts_to_kotlin
- Loading branch information
Showing
43 changed files
with
1,701 additions
and
152 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 |
---|---|---|
@@ -1,15 +1,40 @@ | ||
name: integration-tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
pull_request_review: | ||
types: submitted | ||
|
||
jobs: | ||
integration-tests: | ||
check_approve_count: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
approve_count: ${{ steps.reviews.outputs.approved }} | ||
steps: | ||
- name: Count approve count | ||
id: reviews | ||
run: | | ||
export count=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flank/flank/pulls/${{github.event.number}}/reviews -s | grep -i -c '"state": "APPROVED"') | ||
echo $count | ||
echo "::set-output name=approved::${count}" | ||
- name: Print current approve count | ||
run: | | ||
echo "Current Approve count ${{ steps.reviews.outputs.approved }}" | ||
integration-tests-unix: | ||
needs: [check_approve_count] | ||
if: 'needs.check_approve_count.outputs.approve_count >= 2' | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: '${{ secrets.GITHUB_TOKEN }}' | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
@@ -50,3 +75,52 @@ jobs: | |
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
with: | ||
arguments: "--info :integration_tests:test --tests IntegrationTests.shouldMatchIosSuccessExitCodeAndPattern -Dflank-path=../test_runner/build/libs/flank.jar -Dyml-path=./src/test/resources/flank_ios.yml" | ||
|
||
integration-tests-windows: | ||
needs: [check_approve_count] | ||
if: 'needs.check_approve_count.outputs.approve_count >= 2' | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- 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 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HEAD_REF: ${{ github.ref }} | ||
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: Gradle Integration Tests Android | ||
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 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
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ test_runner/flank/ | |
local.properties | ||
/report.json | ||
results | ||
xcuserdata/ |
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
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.