Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 19 additions & 1 deletion .github/workflows/test-smoke-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,36 @@ jobs:
validate:
runs-on: ubuntu-latest
name: Smoke v2 Tests
container:
image: mcr.microsoft.com/playwright:v1.57.0-noble
options: --ipc=host --init

steps:
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Configure git safe.directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Checkout Main
run: |
git fetch origin
git branch -f main origin/main

- name: Ensure xz is available
run: |
if ! command -v xz >/dev/null 2>&1; then
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y xz-utils
else
apt-get update
apt-get install -y xz-utils
fi
fi

- name: Setup
uses: ./.github/actions/setup

Expand All @@ -35,4 +53,4 @@ jobs:
env:
DOT_LOG_LEVEL: debug
LOCAL_SMOKE: 'true'
run: moon smoke-v2:run
run: moon smoke-v2:run-ci
13 changes: 11 additions & 2 deletions test/smoke-v2/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,25 @@ tasks:
outputStyle: 'stream'
runDepsInParallel: false

run-ci:
command: playwright test -x
deps:
- ~:setup
options:
cache: false
outputStyle: 'stream'
runDepsInParallel: false

setup:
command: ./scripts/ci-preview-setup-smoke-v2.sh
command: bash ./scripts/ci-preview-setup-smoke-v2.sh
options:
cache: false
outputStyle: 'stream'
runFromWorkspaceRoot: true
platform: system

start:
command: ./scripts/ci-preview-start-smoke-v2.sh
command: bash ./scripts/ci-preview-start-smoke-v2.sh
options:
cache: false
outputStyle: 'stream'
Expand Down
Loading