From 5488c9dc8155557e5d18e59b28ba717ba6ed41e2 Mon Sep 17 00:00:00 2001 From: port dev <108868128+portdeveloper@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:17:30 +0300 Subject: [PATCH] Move workflow to main folder --- .github/workflows/playwright.yml | 29 +++++++++++++++++++ .../nextjs/.github/workflows/playwright.yml | 27 ----------------- 2 files changed, 29 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/playwright.yml delete mode 100644 packages/nextjs/.github/workflows/playwright.yml diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 0000000..d894f08 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,29 @@ +name: Playwright Tests +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Change directory + run: cd packages/nextjs + - name: Install dependencies + run: npm install -g yarn && yarn + - name: Install Playwright Browsers + run: yarn playwright install --with-deps + - name: Run Playwright tests + run: yarn playwright test + - uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: packages/nextjs/playwright-report/ + retention-days: 30 diff --git a/packages/nextjs/.github/workflows/playwright.yml b/packages/nextjs/.github/workflows/playwright.yml deleted file mode 100644 index a94b641..0000000 --- a/packages/nextjs/.github/workflows/playwright.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Playwright Tests -on: - push: - branches: [ main, master ] - pull_request: - branches: [ main, master ] -jobs: - test: - timeout-minutes: 60 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: npm install -g yarn && yarn - - name: Install Playwright Browsers - run: yarn playwright install --with-deps - - name: Run Playwright tests - run: yarn playwright test - - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: playwright-report - path: playwright-report/ - retention-days: 30