From f791b9b72ac2eeb5d10cf877519c110d92860101 Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 1 Jul 2024 17:10:07 +0200 Subject: [PATCH] chore(gh-action): create playwright workflow --- .github/actions/ci-checks/action.yml | 11 ----------- .github/actions/ci-setup/action.yml | 1 - .github/workflows/playwright.yml | 25 +++++++++++++++++++++++++ 3 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/playwright.yml diff --git a/.github/actions/ci-checks/action.yml b/.github/actions/ci-checks/action.yml index f873c07c..d4a87a86 100644 --- a/.github/actions/ci-checks/action.yml +++ b/.github/actions/ci-checks/action.yml @@ -9,14 +9,3 @@ runs: - name: Typecheck run: pnpm typecheck shell: bash - - name: Install Playwright browsers - run: pnpm exec playwright install --with-deps - shell: bash - - name: Test React Flow - run: pnpm test:react - shell: bash - env: - CI: true - # - name: Test Svelte Flow - # run: pnpm test:svelte - # shell: bash diff --git a/.github/actions/ci-setup/action.yml b/.github/actions/ci-setup/action.yml index 3d7f1bef..5ac07699 100644 --- a/.github/actions/ci-setup/action.yml +++ b/.github/actions/ci-setup/action.yml @@ -9,7 +9,6 @@ runs: uses: actions/setup-node@v4 with: node-version: 20.x - cache: 'pnpm' - name: Install dependencies run: pnpm install shell: bash diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 00000000..2e94ce0e --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,25 @@ +name: Playwright Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + playwright: + name: 'Playwright Tests' + runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.45.0-jammy + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - uses: ./.github/actions/ci-setup + - uses: ./.github/actions/ci-checks + - name: Run your tests + run: CI=true pnpm test:react + env: + HOME: /root