Skip to content

Commit

Permalink
Merge pull request #551 from reduxjs/feature/yarn-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 17, 2021
2 parents 9d899c1 + e1a6822 commit 5915f21
Show file tree
Hide file tree
Showing 7 changed files with 9,225 additions and 9,995 deletions.
39 changes: 16 additions & 23 deletions .github/workflows/build-and-test-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,29 @@ jobs:
node: ['14.x']

steps:
- name: Checkout repo
- name: Checkout code
uses: actions/checkout@v2

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v1
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: c-hive/gha-npm-cache@v1
node-version: 14.x
cache: 'yarn'

- name: Install deps
run: npm ci --ignore-scripts
- name: Install dependencies
run: yarn install

- name: Run linter
run: npm run lint
run: yarn lint

- name: Run tests
run: npm test
run: yarn test

- name: Generate test coverage
run: npm run test:cov
run: yarn test:cov

- name: Compile
run: npm run build

- name: Report to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run: yarn build

- name: Report to Codecov.io
uses: codecov/codecov-action@v1
Expand All @@ -60,19 +54,18 @@ jobs:
uses: actions/checkout@v2

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: c-hive/gha-npm-cache@v1
cache: 'yarn'

- name: Install deps
run: npm ci --ignore-scripts
run: yarn install

- name: Install TypeScript ${{ matrix.ts }}
run: npm install typescript@${{ matrix.ts }} --ignore-scripts
run: yarn add typescript@${{ matrix.ts }}

- name: Test types
run: |
./node_modules/.bin/tsc --version
npm run test:typescript
yarn test:typescript
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,17 @@ typescript_test/should_not_compile/index.js
typescript_test/common.js
flow_test/should_fail/flow-typed/index.js.flow
flow_test/should_pass/flow-typed/index.js.flow
reselect-builds/
reselect-builds/


typesversions
.cache
.yarnrc
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
*.tgz
768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.1.0.cjs
Loading

0 comments on commit 5915f21

Please sign in to comment.