From 292ab33ee6e7455489ddbb4865b6354b72453b92 Mon Sep 17 00:00:00 2001 From: Anton Lykhoyda Date: Wed, 30 Oct 2024 15:54:02 +0100 Subject: [PATCH] adjust commands --- .github/workflows/e2e-tests.yml | 46 ++++++++++++++++----------------- package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index c4a5933..29015ab 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -1,39 +1,39 @@ name: Playwright Tests on: - pull_request: - push: - branches: main + pull_request: + push: + branches: main jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Install Just - uses: extractions/setup-just@v2 + - name: Install Just + uses: extractions/setup-just@v2 - - name: install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 - with: - version: latest + - name: install wasm-pack + uses: jetli/wasm-pack-action@v0.4.0 + with: + version: latest - - name: build pkg - run: just build + - name: build pkg + run: just build - - uses: actions/setup-node@v4 - with: - node-version: lts/* + - uses: actions/setup-node@v4 + with: + node-version: lts/* - - uses: pnpm/action-setup@v4 + - run: corepack enable - - name: Install dependencies - run: pnpm i + - name: Install dependencies + run: yarn install --immutable - - name: Install Playwright Browsers - working-directory: ./packages/e2e-tests/ - run: npx playwright install --with-deps + - name: Install Playwright Browsers + working-directory: ./packages/e2e-tests/ + run: yarn playwright install --with-deps - - name: Run Playwright tests - run: pnpm run test:e2e + - name: Run Playwright tests + run: yarn run test:e2e diff --git a/package.json b/package.json index cddc1f9..4dd6f79 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "dev": "yarn run just:build-keys && yarn run wasm:build && yarn run snap:start & yarn run demo-wallet:dev", "build": "yarn workspace @webzjs/demo-wallet run build", "demo-wallet:dev": "yarn workspace @webzjs/demo-wallet run dev", - "test:e2e": "yarn workspace @webzjs/e2e-tests test", + "test:e2e": "yarn workspace @webzjs/e2e-tests pretest && yarn workspace @webzjs/e2e-tests test", "snap:start": "yarn workspace @webzjs/zcash-snap run start", "snap:build": "yarn workspace @webzjs/zcash-snap run build", "wasm:build": "yarn workspace @webzjs/wasm run build",