Skip to content

Commit

Permalink
kek
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Apr 13, 2024
1 parent 2a48989 commit 86ec3bd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ jobs:
uses: ./.github/workflows/e2e-run.yml
with:
suite_name: ${{ github.event.inputs.test_suite }}
sha: ${{ github.sha }}
15 changes: 7 additions & 8 deletions .github/workflows/e2e-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
default: 'regression'
required: true
type: string
sha:
required: true
type: string

permissions:
contents: read
Expand All @@ -18,14 +21,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set commit SHA env var
run: |
echo "HEAD_SHA=${{ github.event.pull_request.head.sha || github.sha }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
token: ${{ github.token }}
ref: $HEAD_SHA
ref: ${{ inputs.sha }}

- name: Pull chrome docker image
id: pull_chrome
Expand All @@ -43,7 +42,7 @@ jobs:
- name: Build with Maven
id: build_app
run: |
./mvnw -B -ntp versions:set -DnewVersion=$HEAD_SHA
./mvnw -B -ntp versions:set -DnewVersion=${{ inputs.sha }}
./mvnw -B -V -ntp clean install -Pprod -Dmaven.test.skip=true
- name: Dump docker image
Expand Down Expand Up @@ -81,7 +80,7 @@ jobs:
- name: Run test suite
run: |
./mvnw -B -ntp versions:set -DnewVersion=$HEAD_SHA
./mvnw -B -ntp versions:set -DnewVersion=${{ inputs.sha }}
./mvnw -B -V -ntp -Dsurefire.suiteXmlFiles='src/test/resources/${{ github.event.inputs.test_suite }}.xml' -f 'e2e-tests' test -Pprod
- name: Dump Docker logs on failure
Expand Down Expand Up @@ -133,5 +132,5 @@ jobs:
authToken: ${{secrets.GITHUB_TOKEN}}
context: "Click Details button to view Allure report"
state: "success"
sha: $HEAD_SHA
sha: ${{ inputs.sha }}
target_url: https://reports.kafbat.dev/${{ github.run_number }}
1 change: 1 addition & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
uses: ./.github/workflows/e2e-run.yml
with:
suite_name: "smoke"
sha: ${{ github.event.pull_request.head.sha }}
1 change: 1 addition & 0 deletions .github/workflows/e2e-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
uses: ./.github/workflows/e2e-run.yml
with:
suite_name: "sanity"
sha: ${{ github.sha }}

0 comments on commit 86ec3bd

Please sign in to comment.