Skip to content

Add playwright tests job #3521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
57598ab
add playwright smoke tests job
taghreed86 Oct 16, 2023
d477ee8
add playwright tests job to test.yaml file
taghreed86 Oct 16, 2023
cd536ba
fix syntax errors
taghreed86 Oct 16, 2023
e0a97c1
add to test.yaml
taghreed86 Oct 16, 2023
f0ef904
fix test.yaml
taghreed86 Oct 16, 2023
e143dc5
remove the new job from test.yaml
taghreed86 Oct 16, 2023
db183e0
add new lines
taghreed86 Oct 16, 2023
00f6216
fix indentation in deploy.yaml file
taghreed86 Oct 16, 2023
53170b0
restructure playwright smoke tests job
taghreed86 Oct 16, 2023
2003281
update github_token value
taghreed86 Oct 16, 2023
b80aec8
update repo value
taghreed86 Oct 16, 2023
3ccff23
updaye workflow path
taghreed86 Oct 16, 2023
12b439c
update workflow_file_name value
taghreed86 Oct 16, 2023
efa83fa
add needs section to the playwright job
taghreed86 Oct 16, 2023
fbb5263
restructure the playwright tests job
taghreed86 Oct 16, 2023
c4178ef
update needs section
taghreed86 Oct 16, 2023
95a20f5
added token
enekofb Oct 16, 2023
2527726
remove needs section
taghreed86 Oct 18, 2023
19fcae4
update repo name and remove needs section
taghreed86 Oct 18, 2023
57624ab
remove the wait_interval parameter
taghreed86 Oct 18, 2023
d9d0b73
return wait_interval parameter
taghreed86 Oct 18, 2023
6374f47
Merge branch 'main' into add_playwright_tests_job
taghreed86 Oct 18, 2023
da14580
Merge branch 'main' into add_playwright_tests_job
taghreed86 Oct 25, 2023
56622f6
get chart version
taghreed86 Oct 25, 2023
ac83d26
Merge branch 'main' into add_playwright_tests_job
taghreed86 Oct 26, 2023
29eec5b
modify the playwright-smoke-tests and remove notify-failure option
taghreed86 Oct 26, 2023
0584f84
Merge branch 'main' into add_playwright_tests_job
taghreed86 Nov 1, 2023
23adbc2
add coverage in needs section
taghreed86 Nov 2, 2023
7f846eb
small typo
enekofb Nov 6, 2023
22fe775
Merge branch 'main' into add_playwright_tests_job
taghreed86 Nov 6, 2023
4d71911
remove coverage
taghreed86 Nov 6, 2023
64ba070
add continue-on-error: true parameter
taghreed86 Nov 6, 2023
5b05352
remove playwright tests from smoke-test-results
taghreed86 Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,26 @@ jobs:
WGE_GITLAB_CLIENT_ID: ${{ secrets.WGE_ON_PREM_GITLAB_CLIENT_ID }}
WGE_GITLAB_CLIENT_SECRET: ${{ secrets.WGE_ON_PREM_GITLAB_CLIENT_SECRET }}

playwright-smoke-tests:
runs-on: ubuntu-latest
steps:
- name: Run palywright tests workflow
uses: convictional/[email protected]
with:
owner: weaveworks
repo: playwright-tests
github_token: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: nightly.yaml
ref: main
wait_interval: 10
propagate_failure: false
trigger_workflow: true
wait_workflow: true

smoke-test-results:
if: ${{ always() }}
needs:
[smoke-tests-github, smoke-tests-gitlab-deploy, smoke-tests-gitlab-tenant]
[smoke-tests-github, smoke-tests-gitlab-deploy, smoke-tests-gitlab-tenant, playwright-smoke-tests]
uses: ./.github/workflows/publish-test-results.yaml
with:
runs-on: ubuntu-latest
Expand All @@ -169,7 +185,7 @@ jobs:
notify-failure:
name: Notify Slack on Failure
runs-on: ubuntu-latest
needs: [smoke-tests-github, smoke-tests-gitlab-deploy, smoke-tests-gitlab-tenant]
needs: [smoke-tests-github, smoke-tests-gitlab-deploy, smoke-tests-gitlab-tenant, playwright-smoke-tests]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
steps:
- name: Send alert
Expand All @@ -180,3 +196,5 @@ jobs:
slack-text: |
:sad-parrot: The <https://github.com/weaveworks/weave-gitops-enterprise/commit/${{ github.sha }}|latest commit> from ${{ github.actor }} is failing on main. <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Click here> and weep. Then fix the underlying issue and ensure main remains green.
slack-optional-icon_url: "https://avatars.githubusercontent.com/u/9976052"


1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,4 @@ jobs:
run: yarn lint
- name: Run Front-end Unit Tests
run: yarn test