-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Egor Ivanov <[email protected]>
- Loading branch information
1 parent
bdcd447
commit 568615f
Showing
3 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: gh-integration | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
TEST_ENDPOINT: | ||
description: "Endpoint for tests" | ||
required: true | ||
default: https://dev.github.com | ||
TEST_BROWSER: | ||
description: "Browser for tests" | ||
required: true | ||
default: chrome | ||
ALLURE_JOB_RUN_ID: | ||
description: "ALLURE_JOB_RUN_ID service parameter. Leave blank." | ||
required: false | ||
ALLURE_USERNAME: | ||
description: "ALLURE_USERNAME service parameter. Leave blank" | ||
required: false | ||
|
||
env: | ||
ALLURE_RESULTS: "build/allure-results" | ||
ALLURE_JOB_RUN_ID: ${{ github.event.inputs.ALLURE_JOB_RUN_ID }} | ||
|
||
jobs: | ||
all-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: install and configure allurectl | ||
uses: allure-framework/setup-allurectl@v1 | ||
with: | ||
allure-endpoint: https://demo.testops.cloud | ||
allure-token: ${{ secrets.ALLURE_TOKEN }} | ||
allure-project-id: 338 | ||
allurectl-version: 2.15.1 | ||
- name: Build with Gradle | ||
run: | | ||
allurectl watch -- ./gradlew clean test | ||
export $( ./allurectl job-run env) | ||
printenv | grep TEST_ | ||
printenv | grep ALLURE_ | ||
env: | ||
TEST_ENDPOINT: ${{ github.event.inputs.TEST_ENDPOINT }} | ||
TEST_BROWSER: ${{ github.event.inputs.TEST_BROWSER }} | ||
- name: Get ALLURE_ environments | ||
run: | | ||
printenv | grep ALLURE_ | ||
- name: Get GITHUB_ environments | ||
run: | | ||
printenv | grep GITHUB_ | ||
- name: List results | ||
run: ls -la ${ALLURE_RESULTS} |
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 |
---|---|---|
|
@@ -11,4 +11,6 @@ bin/ | |
.allure/ | ||
|
||
#vscode | ||
.vscode/ | ||
.vscode/ | ||
|
||
.DS_Store |