diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..38b5b96c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - name: Use Yarn 1 + run: | + corepack enable + corepack prepare yarn@1.22.19 --activate + - run: yarn install --frozen-lockfile + - run: yarn test diff --git a/package.json b/package.json index 489519ad..a2bc0cb9 100644 --- a/package.json +++ b/package.json @@ -52,5 +52,6 @@ }, "peerDependencies": { "react": ">=17.0.0" - } + }, + "packageManager": "yarn@1.22.19" } diff --git a/src/Array/index.tsx b/src/Array/index.tsx index f5d9df23..016f5ceb 100644 --- a/src/Array/index.tsx +++ b/src/Array/index.tsx @@ -4,7 +4,6 @@ */ import isArray from 'lodash/isArray' -import without from 'lodash/without' import React from 'react' import {ParentFieldNameContext} from '../Contexts' import Field from '../Field'