Skip to content

Update jest monorepo to v29 (major) #922

Update jest monorepo to v29 (major)

Update jest monorepo to v29 (major) #922

Workflow file for this run

name: Tests
on:
push:
paths-ignore:
- 'docs/**'
- 'internal/website/**'
- '.vscode/**'
- '.husky/**'
pull_request:
paths-ignore:
- 'docs/**'
- 'internal/website/**'
- '.vscode/**'
- '.husky/**'
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
build:
name: Install, Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [12, 14, 16]
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-
- run: npm install -g pnpm@latest
- name: Node version
run: node --version
- name: pnpm version
run: pnpm --version
- name: Install dependencies and build
run: pnpm install
- name: Global Jest
run: pnpm i -g jest
- name: Test everything
run: pnpm test:ci