v0.90.3 #2932
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: Test | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 16.x ] | |
react-version: [ 16.14.0, 17, 18 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Environment | |
uses: prezly/setup-github-actions@v1 | |
with: | |
node: ${{ matrix.node-version }} | |
pnpm: "8.4.0" | |
- name: Set React ${{ matrix.react-version }} | |
uses: prezly/pnpm-overrides-action@v1 | |
with: | |
'@types/react': "${{ matrix.react-version }}" | |
'@types/react-dom': "${{ startsWith(matrix.react-version, '16.') && '16.9.9' || matrix.react-version }}" | |
'react': "${{ matrix.react-version }}" | |
'react-dom': "${{ matrix.react-version }}" | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- run: pnpm build | |
- run: pnpm test |