Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Commit 90ff61f

Browse files
committed
chore: update circleci config
1 parent c9b8c22 commit 90ff61f

File tree

2 files changed

+63
-37
lines changed

2 files changed

+63
-37
lines changed

.circleci/config.yml

Lines changed: 62 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,85 @@
1-
version: 2
1+
version: 2.1
22

3-
defaults: &defaults
4-
docker:
5-
- image: circleci/node:10
6-
working_directory: ~/project
3+
executors:
4+
default:
5+
docker:
6+
- image: circleci/node:14
7+
working_directory: ~/project
8+
9+
commands:
10+
attach_project:
11+
steps:
12+
- attach_workspace:
13+
at: ~/project
714

815
jobs:
916
install-dependencies:
10-
<<: *defaults
17+
executor: default
1118
steps:
1219
- checkout
13-
- attach_workspace:
14-
at: ~/project
20+
- attach_project
1521
- restore_cache:
1622
keys:
17-
- v1-dependencies-{{ checksum "package.json" }}
18-
- v1-dependencies-
23+
- dependencies-{{ checksum "package.json" }}
24+
- dependencies-
1925
- restore_cache:
2026
keys:
21-
- v1-dependencies-example-{{ checksum "example/package.json" }}
22-
- v1-dependencies-example-
23-
- run: yarn bootstrap
27+
- dependencies-example-{{ checksum "example/package.json" }}
28+
- dependencies-example-
29+
- run:
30+
name: Install dependencies
31+
command: |
32+
yarn install --cwd example --frozen-lockfile
33+
yarn install --frozen-lockfile
2434
- save_cache:
25-
key: v1-dependencies-{{ checksum "package.json" }}
26-
paths: node_modules
35+
key: dependencies-{{ checksum "package.json" }}
36+
paths:
37+
- node_modules
2738
- save_cache:
28-
key: v1-dependencies-example-{{ checksum "example/package.json" }}
29-
paths: example/node_modules
39+
key: dependencies-example-{{ checksum "example/package.json" }}
40+
paths:
41+
- example/node_modules
3042
- persist_to_workspace:
3143
root: .
32-
paths: .
33-
lint-and-typecheck:
34-
<<: *defaults
35-
steps:
36-
- attach_workspace:
37-
at: ~/project
38-
- run: |
44+
paths:
45+
- .
46+
lint:
47+
executor: default
48+
steps:
49+
- attach_project
50+
- run:
51+
name: Lint files
52+
command: |
3953
yarn lint
54+
55+
typescript:
56+
executor: default
57+
steps:
58+
- attach_project
59+
- run:
60+
name: Typecheck files
61+
command: |
4062
yarn typescript
41-
unit-tests:
42-
<<: *defaults
43-
steps:
44-
- attach_workspace:
45-
at: ~/project
46-
- run: yarn test -- --coverage
47-
- store_artifacts:
48-
path: coverage
49-
destination: coverage
63+
64+
build-package:
65+
executor: default
66+
steps:
67+
- attach_project
68+
- run:
69+
name: Build package
70+
command: |
71+
yarn prepare
5072
5173
workflows:
52-
version: 2
5374
build-and-test:
5475
jobs:
5576
- install-dependencies
56-
- lint-and-typecheck:
77+
- lint:
78+
requires:
79+
- install-dependencies
80+
- typescript:
81+
requires:
82+
- install-dependencies
83+
- build-package:
5784
requires:
5885
- install-dependencies

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ A cross-platform Tab View component for React Native. Implemented using [`react-
2222

2323
<a href="https://raw.githubusercontent.com/satya164/react-native-tab-view/main/demo/demo.mp4"><img src="https://raw.githubusercontent.com/satya164/react-native-tab-view/main/demo/demo.gif" width="360"></a>
2424

25-
2625
## React Native Compatibility
2726

2827
To use this library you need to ensure you are using the correct version of React Native. If you are using a version of React Native that is lower than `0.63` you will need to upgrade that before attempting to use this library.
2928

30-
| `react-native-tab-view` version | Required React Native Version |
29+
| `react-native-tab-view` Version | Required React Native Version |
3130
| ------------------------------- | ----------------------------- |
3231
| `2.x.x` | `< 0.63` |
3332
| `3.x.x` | `>= 0.63` |

0 commit comments

Comments
 (0)