Merge pull request #748 from provectus/checks/498-build-config
Checks/498 extract e2e-checks from the main build
This commit is contained in:
commit
96d07a7d6f
3 changed files with 69 additions and 36 deletions
35
.github/workflows/backend.yml
vendored
35
.github/workflows/backend.yml
vendored
|
@ -4,7 +4,6 @@ on:
|
||||||
types: ['opened', 'edited', 'reopened', 'synchronize']
|
types: ['opened', 'edited', 'reopened', 'synchronize']
|
||||||
paths:
|
paths:
|
||||||
- 'kafka-ui-api/**'
|
- 'kafka-ui-api/**'
|
||||||
- 'kafka-ui-e2e-checks/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -17,14 +16,6 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set the values
|
|
||||||
id: step_one
|
|
||||||
run: |
|
|
||||||
cat "./kafka-ui-e2e-checks/.env.ci" >> "./kafka-ui-e2e-checks/.env"
|
|
||||||
- name: pull docker
|
|
||||||
id: step_four
|
|
||||||
run: |
|
|
||||||
docker pull selenoid/vnc:chrome_86.0
|
|
||||||
- name: compose app
|
- name: compose app
|
||||||
id: step_five
|
id: step_five
|
||||||
run: |
|
run: |
|
||||||
|
@ -44,29 +35,3 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
||||||
- name: Generate allure report
|
|
||||||
uses: simple-elf/allure-report-action@master
|
|
||||||
if: always()
|
|
||||||
id: allure-report
|
|
||||||
with:
|
|
||||||
allure_results: ./kafka-ui-e2e-checks/allure-results
|
|
||||||
gh_pages: allure-results
|
|
||||||
allure_report: allure-report
|
|
||||||
subfolder: allure-results
|
|
||||||
- name: Deploy allure report to Github Pages
|
|
||||||
if: always()
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: allure-history
|
|
||||||
publish_branch: gh-pages
|
|
||||||
destination_dir: ./allure
|
|
||||||
- name: Post the link to allure report
|
|
||||||
if: always()
|
|
||||||
uses: Sibz/github-status-action@v1
|
|
||||||
with:
|
|
||||||
authToken: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
context: 'Test report'
|
|
||||||
state: 'success'
|
|
||||||
sha: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
||||||
target_url: https://${{ github.repository_owner }}.github.io/kafka-ui/allure/allure-results/${{ github.run_number }}
|
|
68
.github/workflows/e2e-checks.yaml
vendored
Normal file
68
.github/workflows/e2e-checks.yaml
vendored
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
name: e2e-checks
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: ['opened', 'edited', 'reopened', 'synchronize']
|
||||||
|
paths:
|
||||||
|
- 'kafka-ui-api/**'
|
||||||
|
- 'kafka-ui-contract/**'
|
||||||
|
- 'kafka-ui-react-app/**'
|
||||||
|
- 'kafka-ui-e2e-checks/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Cache local Maven repository
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set the values
|
||||||
|
id: step_one
|
||||||
|
run: |
|
||||||
|
cat "./kafka-ui-e2e-checks/.env.ci" >> "./kafka-ui-e2e-checks/.env"
|
||||||
|
- name: pull docker
|
||||||
|
id: step_four
|
||||||
|
run: |
|
||||||
|
docker pull selenoid/vnc:chrome_86.0
|
||||||
|
- name: compose app
|
||||||
|
id: step_five
|
||||||
|
run: |
|
||||||
|
docker-compose -f ./docker/kafka-ui.yaml up -d
|
||||||
|
- name: Set up JDK 1.13
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.13
|
||||||
|
- name: Build and analyze
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
||||||
|
- name: Generate allure report
|
||||||
|
uses: simple-elf/allure-report-action@master
|
||||||
|
if: always()
|
||||||
|
id: allure-report
|
||||||
|
with:
|
||||||
|
allure_results: ./kafka-ui-e2e-checks/allure-results
|
||||||
|
gh_pages: allure-results
|
||||||
|
allure_report: allure-report
|
||||||
|
subfolder: allure-results
|
||||||
|
- name: Deploy allure report to Github Pages
|
||||||
|
if: always()
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: allure-history
|
||||||
|
publish_branch: gh-pages
|
||||||
|
destination_dir: ./allure
|
||||||
|
- name: Post the link to allure report
|
||||||
|
if: always()
|
||||||
|
uses: Sibz/github-status-action@v1
|
||||||
|
with:
|
||||||
|
authToken: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
context: 'Test report'
|
||||||
|
state: 'success'
|
||||||
|
sha: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
target_url: https://${{ github.repository_owner }}.github.io/kafka-ui/allure/allure-results/${{ github.run_number }}
|
|
@ -25,7 +25,7 @@ public class WaitUtils {
|
||||||
refresh();
|
refresh();
|
||||||
i++;
|
i++;
|
||||||
sleep(2000);
|
sleep(2000);
|
||||||
} while (!selectedValue.equals(element.getSelectedValue()) && i != 20);
|
} while (!selectedValue.equals(element.getSelectedValue()) && i != 30);
|
||||||
Assertions.assertEquals(selectedValue, element.getSelectedValue()) ;
|
Assertions.assertEquals(selectedValue, element.getSelectedValue()) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue