Skip to content

Commit e5ccb65

Browse files
feat: add test and build for ci cd
1 parent 0e76d5e commit e5ccb65

File tree

2 files changed

+69
-31
lines changed

2 files changed

+69
-31
lines changed

.github/workflows/test-and-build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Suite
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
test-and-build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [18.x]
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
18+
fetch-depth: 0
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install Yarn
26+
run: npm install -g yarn
27+
28+
- name: Install dependencies
29+
run: yarn install
30+
31+
- name: Linting
32+
run: yarn lint
33+
34+
- name: Run tests
35+
run: yarn test
36+
37+
- name: Build package
38+
run: yarn prepare

yarn.lock

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,37 @@ __metadata:
28892889
languageName: node
28902890
linkType: hard
28912891

2892+
"@keyvaluesystems/react-native-scribble@workspace:.":
2893+
version: 0.0.0-use.local
2894+
resolution: "@keyvaluesystems/react-native-scribble@workspace:."
2895+
dependencies:
2896+
"@commitlint/config-conventional": ^17.0.2
2897+
"@evilmartians/lefthook": ^1.5.0
2898+
"@react-native/eslint-config": ^0.72.2
2899+
"@release-it/conventional-changelog": ^5.0.0
2900+
"@types/jest": ^28.1.2
2901+
"@types/react": ~17.0.21
2902+
"@types/react-native": 0.70.0
2903+
commitlint: ^17.0.2
2904+
del-cli: ^5.0.0
2905+
eslint: ^8.4.1
2906+
eslint-config-prettier: ^8.5.0
2907+
eslint-plugin-prettier: ^4.0.0
2908+
jest: ^28.1.1
2909+
prettier: ^2.0.5
2910+
react: 18.2.0
2911+
react-native: 0.72.5
2912+
react-native-blob-util: ^0.19.1
2913+
react-native-builder-bob: ^0.20.0
2914+
react-native-svg: ^13.14.0
2915+
release-it: ^15.0.0
2916+
typescript: ^5.0.2
2917+
peerDependencies:
2918+
react: "*"
2919+
react-native: "*"
2920+
languageName: unknown
2921+
linkType: soft
2922+
28922923
"@leichtgewicht/ip-codec@npm:^2.0.1":
28932924
version: 2.0.4
28942925
resolution: "@leichtgewicht/ip-codec@npm:2.0.4"
@@ -14839,37 +14870,6 @@ __metadata:
1483914870
languageName: unknown
1484014871
linkType: soft
1484114872

14842-
"react-native-scribble@workspace:.":
14843-
version: 0.0.0-use.local
14844-
resolution: "react-native-scribble@workspace:."
14845-
dependencies:
14846-
"@commitlint/config-conventional": ^17.0.2
14847-
"@evilmartians/lefthook": ^1.5.0
14848-
"@react-native/eslint-config": ^0.72.2
14849-
"@release-it/conventional-changelog": ^5.0.0
14850-
"@types/jest": ^28.1.2
14851-
"@types/react": ~17.0.21
14852-
"@types/react-native": 0.70.0
14853-
commitlint: ^17.0.2
14854-
del-cli: ^5.0.0
14855-
eslint: ^8.4.1
14856-
eslint-config-prettier: ^8.5.0
14857-
eslint-plugin-prettier: ^4.0.0
14858-
jest: ^28.1.1
14859-
prettier: ^2.0.5
14860-
react: 18.2.0
14861-
react-native: 0.72.5
14862-
react-native-blob-util: ^0.19.1
14863-
react-native-builder-bob: ^0.20.0
14864-
react-native-svg: ^13.14.0
14865-
release-it: ^15.0.0
14866-
typescript: ^5.0.2
14867-
peerDependencies:
14868-
react: "*"
14869-
react-native: "*"
14870-
languageName: unknown
14871-
linkType: soft
14872-
1487314873
"react-native-svg@npm:^13.14.0":
1487414874
version: 13.14.0
1487514875
resolution: "react-native-svg@npm:13.14.0"

0 commit comments

Comments
 (0)