Skip to content

Bump jest and @types/jest #1540

Bump jest and @types/jest

Bump jest and @types/jest #1540

Workflow file for this run

name: react-i18n-currency-input build
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
merge_group:
concurrency:
group: build--${{ github.head_ref || github.ref }} # if it's not a PR, we'll use the main ref
cancel-in-progress: true
jobs:
test:
name: "Run tests"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16.x]
react: [16, 17, 18]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- run: yarn install --immutable
- name: run jest
run: yarn jest-on-react-${{ matrix.react }}
build_package:
name: "Build package"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- run: yarn install --immutable
- name: Webpack compile everything
run: webpack
- name: Build storybook
run: yarn build-storybook
- name: build package locally
run: yarn pack
- name: Archive the output of yarn pack
uses: actions/upload-artifact@v3
with:
name: npm_package
path: '*.tgz'
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist