Skip to content

Commit 4a01e69

Browse files
committed
chore: ci
1 parent 17d85a5 commit 4a01e69

File tree

3 files changed

+13
-37
lines changed

3 files changed

+13
-37
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Setup
2-
description: Setup Node.js and install dependencies
1+
name: Setup JS
2+
description: Set up Node.js and install dependencies
33

44
runs:
55
using: composite
@@ -9,9 +9,9 @@ runs:
99
with:
1010
node-version-file: .nvmrc
1111

12-
- name: Restore dependencies
12+
- name: Cache dependencies
1313
id: yarn-cache
14-
uses: actions/cache/restore@v4
14+
uses: actions/cache@v4
1515
with:
1616
path: |
1717
**/node_modules
@@ -24,13 +24,4 @@ runs:
2424
- name: Install dependencies
2525
if: steps.yarn-cache.outputs.cache-hit != 'true'
2626
run: yarn install --immutable
27-
shell: bash
28-
29-
- name: Cache dependencies
30-
if: steps.yarn-cache.outputs.cache-hit != 'true'
31-
uses: actions/cache/save@v4
32-
with:
33-
path: |
34-
**/node_modules
35-
.yarn/install-state.gz
36-
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
27+
shell: bash

.github/workflows/ci.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,19 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup
21-
uses: ./.github/actions/setup
22-
23-
- name: Lint files
24-
run: yarn lint
21+
uses: ./.github/actions/setup-js
2522

2623
- name: Typecheck files
2724
run: yarn typecheck
2825

29-
test:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v4
34-
35-
- name: Setup
36-
uses: ./.github/actions/setup
37-
38-
- name: Run unit tests
39-
run: yarn test --maxWorkers=2 --coverage
40-
4126
build-library:
4227
runs-on: ubuntu-latest
4328
steps:
4429
- name: Checkout
4530
uses: actions/checkout@v4
4631

4732
- name: Setup
48-
uses: ./.github/actions/setup
33+
uses: ./.github/actions/setup-js
4934

5035
- name: Build package
5136
run: yarn prepare
@@ -59,7 +44,7 @@ jobs:
5944
uses: actions/checkout@v4
6045

6146
- name: Setup
62-
uses: ./.github/actions/setup
47+
uses: ./.github/actions/setup-js
6348

6449
- name: Cache turborepo for Android
6550
uses: actions/cache@v4
@@ -100,11 +85,11 @@ jobs:
10085
restore-keys: |
10186
${{ runner.os }}-gradle-
10287
103-
- name: Build example for Android
88+
- name: Build for Android
10489
env:
10590
JAVA_OPTS: "-XX:MaxHeapSize=6g"
10691
run: |
107-
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
92+
yarn ubrn:android
10893
10994
build-ios:
11095
runs-on: macos-latest
@@ -166,6 +151,6 @@ jobs:
166151
**/ios/Pods
167152
key: ${{ steps.cocoapods-cache.outputs.cache-key }}
168153

169-
- name: Build example for iOS
154+
- name: Build for iOS
170155
run: |
171-
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
156+
yarn ubrn:ios

ubrn.config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ android:
1111
targets:
1212
- arm64-v8a
1313
- armeabi-v7a
14-
- x86_64
14+
# - x86_64

0 commit comments

Comments
 (0)