Skip to content

Commit 0df1a73

Browse files
authored
Merge pull request #1845 from OneSignal/fg/use-bun
ci: use bun action for installing packages
2 parents 82462fa + 3d7cf1b commit 0df1a73

File tree

9 files changed

+2174
-13463
lines changed

9 files changed

+2174
-13463
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,22 @@ name: Test
22

33
on:
44
pull_request:
5-
branches: '**'
5+
branches: "**"
66

77
jobs:
88
build:
99
runs-on: ubuntu-24.04
1010
steps:
11-
- uses: actions/checkout@v4
12-
- name: '[Setup] Node'
13-
uses: actions/setup-node@v4
14-
with:
15-
node-version: 16
16-
- name: '[Setup] Dependencies'
17-
run: yarn
18-
- name: '[Test] Linting'
19-
run: yarn lint
11+
- name: "Checkout"
12+
uses: actions/checkout@v5
2013

21-
- name: Unit tests results
22-
if: failure()
23-
uses: actions/upload-artifact@v4
14+
- name: "Setup Bun"
15+
uses: oven-sh/setup-bun@v2
2416
with:
25-
name: unit-tests-results
26-
path: .
17+
bun-version: latest
18+
19+
- name: "Install"
20+
run: bun i
21+
22+
- name: "Linting"
23+
run: bun run lint

bun.lock

Lines changed: 577 additions & 0 deletions
Large diffs are not rendered by default.

examples/RNOneSignalTS/README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ This is a new [**React Native**](https://reactnative.dev) project, bootstrapped
44

55
> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
66
7+
Also make sure to run the link command in root:
8+
`bun link`
9+
710
## Step 1: Start Metro
811

912
First, you will need to run **Metro**, the JavaScript build tool for React Native.
1013

1114
To start the Metro dev server, run the following command from the root of your React Native project:
1215

1316
```sh
14-
# Using npm
15-
npm start
16-
17-
# OR using Yarn
18-
yarn start
17+
bun i
1918
```
2019

2120
## Step 2: Build and run your app
@@ -25,11 +24,7 @@ With Metro running, open a new terminal window/pane from the root of your React
2524
### Android
2625

2726
```sh
28-
# Using npm
29-
npm run android
30-
31-
# OR using Yarn
32-
yarn android
27+
bun run android
3328
```
3429

3530
### iOS
@@ -51,11 +46,7 @@ bundle exec pod install
5146
For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
5247

5348
```sh
54-
# Using npm
55-
npm run ios
56-
57-
# OR using Yarn
58-
yarn ios
49+
bun run ios
5950
```
6051

6152
If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.

examples/RNOneSignalTS/__tests__/App.test.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/RNOneSignalTS/bun.lock

Lines changed: 1576 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)