Skip to content

Commit 92f1367

Browse files
taghreed86enekofb
andauthored
Add playwright tests job (#3521)
* add playwright smoke tests job * add playwright tests job to test.yaml file * fix syntax errors * add to test.yaml * fix test.yaml * remove the new job from test.yaml * add new lines * fix indentation in deploy.yaml file * restructure playwright smoke tests job * update github_token value * update repo value * updaye workflow path * update workflow_file_name value * add needs section to the playwright job * restructure the playwright tests job * update needs section * added token * remove needs section * update repo name and remove needs section * remove the wait_interval parameter * return wait_interval parameter * get chart version * modify the playwright-smoke-tests and remove notify-failure option * add coverage in needs section * small typo * remove coverage * add continue-on-error: true parameter * remove playwright tests from smoke-test-results --------- Co-authored-by: Eneko Fernández <[email protected]> Co-authored-by: Eneko Fernandez <[email protected]>
1 parent bb86874 commit 92f1367

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,34 @@ jobs:
153153
WGE_GITLAB_CLIENT_ID: ${{ secrets.WGE_ON_PREM_GITLAB_CLIENT_ID }}
154154
WGE_GITLAB_CLIENT_SECRET: ${{ secrets.WGE_ON_PREM_GITLAB_CLIENT_SECRET }}
155155

156+
playwright-smoke-tests:
157+
needs: [build]
158+
runs-on: ubuntu-latest
159+
continue-on-error: true
160+
steps:
161+
- name: Checkout code
162+
uses: actions/checkout@v3
163+
with:
164+
fetch-depth: 0
165+
- name: Generate release tags
166+
id: release_tags
167+
run: |
168+
TAG=$(git describe --always --match "v*" --abbrev=7 | sed 's/^[^0-9]*//' )
169+
echo "tag=$TAG" >> $GITHUB_OUTPUT
170+
- name: Run playwright tests workflow
171+
uses: convictional/[email protected]
172+
with:
173+
owner: weaveworks
174+
repo: playwright-tests
175+
github_token: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }}
176+
workflow_file_name: nightly.yaml
177+
ref: main
178+
wait_interval: 10
179+
propagate_failure: false
180+
trigger_workflow: true
181+
wait_workflow: true
182+
client_payload: '{"chart_version": "${{ steps.release_tags.outputs.tag }}"}'
183+
156184
smoke-test-results:
157185
if: ${{ always() }}
158186
needs:
@@ -180,3 +208,5 @@ jobs:
180208
slack-text: |
181209
: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.
182210
slack-optional-icon_url: "https://avatars.githubusercontent.com/u/9976052"
211+
212+

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,4 @@ jobs:
136136
run: yarn lint
137137
- name: Run Front-end Unit Tests
138138
run: yarn test
139+

0 commit comments

Comments
 (0)