Skip to content

Commit

Permalink
chore(ci): same file as react-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Dec 5, 2024
1 parent b884219 commit 2b6f5e5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
name: Run Tests
name: Run tests

on: [push]

env:
PNPM_CACHE_FOLDER: .pnpm-store
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

Expand Down

0 comments on commit 2b6f5e5

Please sign in to comment.