Merge pull request #315 from houdiniproject/dependabot/npm_and_yarn/t… #1535
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: [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 |