Skip to content

Commit

Permalink
Added set_status job to update the PR with e2e status (#1321)
Browse files Browse the repository at this point in the history
* Added set_status job to update the PR with all of teh job statuses once completed

* Updated logic for testing

* Added `target_url` parameter to link to this workflow run

* Updated nightwatch workflow to e2e (#1320)

* Updated nightwatch workflow to e2e

* Updated test_type parameter value to e2e

* Update set_status workflow branch to main

* updated the ripple regression test (#1322)

* updated the ripple regression test

* fix

* use ubuntu runner temporarily

* add smoke to set status

* keep reference site UI consistent

* Add initial status

---------

Co-authored-by: Tim Yao <[email protected]>
  • Loading branch information
MarkCalvert and tim-yao authored Nov 13, 2023
1 parent e8b8828 commit c1e696c
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 29 deletions.
117 changes: 89 additions & 28 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,120 @@ on:
required: true
be_url:
type: string
required: true
fe_url:
type: string
required: true

jobs:
e2e_be:
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_be.yml@main
set_status_initial:
uses: dpc-sdp/github-actions/.github/workflows/set_status.yml@main
secrets: inherit
with:
context: 'e2e'
description: 'Waiting for tests to pass'
state: 'pending'
target_url: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
fe_smoke:
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_fe.yml@main
secrets: inherit
with:
tags: "(@core or @${{ inputs.project }}) and @regression"
name: 'FE smoke'
test_type: ":smoke-test:"
tags: "@core and @smoke"
fe_url: ${{ inputs.fe_url }}
be_url: ${{ inputs.be_url }}
project: ${{ inputs.project }}
browser: 'chrome'
test_id: 'fixture'
test_type: ':e2e:'
test_id: "fixture"
parallel: 10
tag: 'sdp-dev-r1-chrome'
runner: 'biggy-ripple'
e2e_fe_smoke:
fe_core:
needs: fe_smoke
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_fe.yml@main
secrets: inherit
with:
tags: "(@smoke and @core) or (@smoke and @${{ inputs.project }})"
be_url: ${{ inputs.be_url }}
name: 'FE core'
test_type: ':e2e:'
tags: "@core and @regression and not @mobile"
fe_url: ${{ inputs.fe_url }}
be_url: ${{ inputs.be_url }}
project: ${{ inputs.project }}
browser: 'chrome'
test_id: 'fixture'
test_type: ':e2e:'
test_id: "fixture"
parallel: 10
tag: 'sdp-dev-r1-chrome'
runner: 'biggy-ripple'
e2e_fe_chrome:
needs:
- e2e_be
- e2e_fe_smoke
fe_core_safari:
needs: fe_smoke
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_fe.yml@main
secrets: inherit
with:
tags: "(@core or @${{ inputs.project }}) and @regression and not @mobile"
be_url: ${{ inputs.be_url }}
name: 'FE Core Safari'
test_type: ':e2e:'
tags: '@core and @regression and not @mobile'
fe_url: ${{ inputs.fe_url }}
be_url: ${{ inputs.be_url }}
project: ${{ inputs.project }}
browser: 'chrome'
test_id: 'fixture'
test_id: "fixture"
parallel: 1
tag: 'sdp-dev-r1-chrome'
browser: 'browserstack.safari'
runner: 'biggy-ripple'
fe_core_android_chrome:
needs: fe_smoke
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_fe.yml@main
secrets: inherit
with:
name: 'FE Core Android Chrome'
test_type: ':e2e:'
tags: '@core and @regression and not @desktop'
fe_url: ${{ inputs.fe_url }}
be_url: ${{ inputs.be_url }}
project: ${{ inputs.project }}
test_id: "fixture"
parallel: 1
tag: 'sdp-dev-r1-chrome'
browser: 'browserstack.androidChrome'
runner: 'biggy-ripple'
e2e_fe_android:
needs:
- e2e_be
- e2e_fe_smoke
fe_core_iphone_safari:
needs: fe_smoke
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_fe.yml@main
secrets: inherit
with:
tags: "(@core or @${{ inputs.project }}) and @regression and not @desktop"
name: 'FE Core iPhone Safari'
test_type: ':e2e:'
tags: '@core and @regression and not @desktop'
fe_url: ${{ inputs.fe_url }}
be_url: ${{ inputs.be_url }}
project: ${{ inputs.project }}
test_id: "fixture"
parallel: 1
tag: 'sdp-dev-r1-chrome'
browser: 'browserstack.iphoneSafari'
runner: 'biggy-ripple'
fe_core_visual:
needs: fe_smoke
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_fe.yml@main
secrets: inherit
with:
name: 'FE core visual'
app: frontend-visual
test_type: ":applitools:"
eyes_appname: 'sdp-core-v1'
tags: "@core and @visual-regression-minimal"
fe_url: ${{ inputs.fe_url }}
be_url: ${{ inputs.be_url }}
project: ${{ inputs.project }}
browser: 'androidChrome'
test_id: 'fixture'
test_type: ':e2e:'
test_id: "fixture"
parallel: 1
tag: 'sdp-dev-r1-chrome'
runner: 'biggy-ripple'
set_status:
needs: [fe_smoke, fe_core, fe_core_safari, fe_core_iphone_safari, fe_core_android_chrome, fe_core_visual]
if: ${{ always() }}
uses: dpc-sdp/github-actions/.github/workflows/set_status.yml@main
secrets: inherit
with:
context: 'e2e'
description: 'Ripple E2E testing'
target_url: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
2 changes: 1 addition & 1 deletion examples/reference/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default {
*/
ripple: {
viclogo: true,
viclogoFooter: false
viclogoFooter: true
},
/*
* Configuration for ripple-nuxt-tide
Expand Down

0 comments on commit c1e696c

Please sign in to comment.