From 67b5e7ead538695212958b4613126b9c8f0ca4d0 Mon Sep 17 00:00:00 2001 From: Rain <958414905@qq.com> Date: Sun, 10 Sep 2023 00:23:06 +0800 Subject: [PATCH] chore: add ci for e2e --- .github/workflows/nocobase-test-e2e.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/nocobase-test-e2e.yml diff --git a/.github/workflows/nocobase-test-e2e.yml b/.github/workflows/nocobase-test-e2e.yml new file mode 100644 index 0000000000..f12ce904ba --- /dev/null +++ b/.github/workflows/nocobase-test-e2e.yml @@ -0,0 +1,27 @@ +name: NocoBase E2E Test +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: yarn install + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: yarn test:e2e + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30