-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (40 loc) · 1.21 KB
/
check.yml
File metadata and controls
41 lines (40 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/jod
- run: npm ci
- run: npm run lint
test-simple:
name: Run tests which doesn't require MacOS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/jod
- run: npm ci
- run: npm run build
- run: npm test --workspace gyp-to-cmake --workspace react-native-node-api-cmake --workspace react-native-node-api-modules
test-macos:
name: Run tests which requires MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/jod
# Version here should match the one in React Native template and packages/react-native-node-api-cmake/src/cli.ts
- run: sdkmanager --install "ndk;27.1.12297006"
- run: npm ci
- run: npm run build
- run: npm run build-weak-node-api --workspace react-native-node-api-modules
- run: npm test --workspace react-native-node-addon-examples