Start testing on React 19 #2028
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [22.x, 20.x] | |
react: [16, 17, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
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 | |
- uses: ./.github/actions/reusable_build | |
- name: build package locally | |
run: yarn pack | |
- name: Archive the output of yarn pack | |
uses: actions/upload-artifact@v4 | |
with: | |
name: npm_package | |
path: '*.tgz' | |
- name: Archive build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist |