Skip to content

Commit

Permalink
swap to container
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Aug 6, 2024
1 parent 901632e commit e73cb37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
7 changes: 7 additions & 0 deletions common/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ components:
name: mattermost
namespace: mattermost
condition: "'{.status.phase}'=Ready"
- description: Mattermost to be Healthy
wait:
cluster:
kind: Deployment
name: mattermost-enterprise-edition
namespace: mattermost
condition: Available
24 changes: 7 additions & 17 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
tasks:
- name: all
actions:
- task: health-check
- task: ingress
- task: ui

- name: health-check
actions:
- description: Mattermost Health Check
wait:
cluster:
kind: Deployment
name: mattermost-enterprise-edition
namespace: mattermost
condition: Available

- name: ingress
actions:
- description: Mattermost UI Health Check
Expand All @@ -27,9 +16,10 @@ tasks:
- name: ui
description: Mattermost UI Checks
actions:
- cmd: npm ci
dir: tests
- cmd: npx playwright install --with-deps
dir: tests
- cmd: npx playwright test
dir: tests
- cmd: |
docker run --rm --ipc=host --net=host --mount type=bind,source="$(pwd)",target=/app mcr.microsoft.com/playwright:v1.43.1-jammy sh -c " \
cd app && \
npm ci && \
npx playwright test \
"
dir: tests

Check failure on line 25 in tasks/test.yaml

View workflow job for this annotation

GitHub Actions / Lint

25:19 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit e73cb37

Please sign in to comment.