From 2b6f5e578970d43d77f2e1edef4fc7a1411c606b Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Thu, 5 Dec 2024 11:00:49 +0100 Subject: [PATCH] chore(ci): same file as react-sdk --- .github/workflows/test.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9fa7a0c0..2ef42157 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,5 @@ -name: Run Tests +name: Run tests + on: [push] env: @@ -6,31 +7,36 @@ env: SKIP_INSTALL_SIMPLE_GIT_HOOKS: 1 # Skip installing simple-git-hooks jobs: - test: - name: Unit Test - runs-on: ubuntu-latest + release: + runs-on: ubuntu-24.04 strategy: matrix: node-version: [20] steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup pnpm uses: pnpm/action-setup@v4 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: pnpm + - name: Cache Cypress binary uses: actions/cache@v4 with: path: ~/.cache/Cypress key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }} + - name: Install dependencies run: pnpm install - - name: Run Unit Tests + + - name: Unit test run run: pnpm run test:unit:ci + - name: Cypress run run: pnpm run test:e2e