From 8a88b332c59c9d2253633fecba35f5a055df9c58 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 23 May 2023 12:21:07 -0700 Subject: [PATCH] chore: fixes int test for release --- .github/workflows/deploy.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 83152bd8..96c360e8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,22 +38,40 @@ jobs: run: make test SKIP_ASSET=1 int-test: name: Integration Tests + timeout-minutes: 60 runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + name: Install Node + with: + node-version: latest + - run: corepack enable + - run: pnpm --version + - uses: actions/setup-node@v3 + with: + node-version: latest + cache: "pnpm" + cache-dependency-path: "**/pnpm-lock.yaml" + - name: Install dependencies + run: pnpm install - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build uses: docker/bake-action@v3 with: - workdir: ./e2e load: true set: | *.cache-from=type=gha *.cache-to=type=gha,mode=max - - name: Run tests - run: docker compose -f e2e/docker-compose.yml up --exit-code-from cypress + - name: Run Playwright tests + run: docker compose up --exit-code-from playwright + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 buildx: needs: [go-test, npm-test, int-test] name: Release