Skip to content

Commit 75a81e7

Browse files
committed
ci: merge workflows
1 parent a530ed0 commit 75a81e7

2 files changed

Lines changed: 26 additions & 36 deletions

File tree

.github/workflows/build.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,32 @@ on:
77
branches: [main]
88

99
jobs:
10-
android:
10+
build-lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup
17+
uses: ./.github/actions/setup
18+
19+
- name: Build packages
20+
run: yarn build
21+
22+
- name: Lint files
23+
run: yarn lint
24+
25+
- name: Typecheck files
26+
run: yarn typecheck
27+
28+
- name: Test Brownfield CLI
29+
run: |
30+
yarn workspace @callstack/react-native-brownfield brownfield --version
31+
32+
rn-android:
1133
name: RN Android App & AAR
1234
runs-on: ubuntu-latest
35+
needs: lint
1336

1437
steps:
1538
- uses: actions/checkout@v4
@@ -32,10 +55,6 @@ jobs:
3255
- name: Build packages
3356
run: yarn build
3457

35-
- name: Test Brownfield CLI
36-
run: |
37-
yarn workspace @callstack/react-native-brownfield brownfield --version
38-
3958
- name: Build Android RN app
4059
run: |
4160
cd apps/tester-from-source/kotlin
@@ -65,6 +84,7 @@ jobs:
6584
rn-ios:
6685
name: RN iOS App & XCFramework
6786
runs-on: macos-latest
87+
needs: lint
6888

6989
steps:
7090
- uses: actions/checkout@v4
@@ -89,11 +109,7 @@ jobs:
89109
- name: Install dependencies
90110
run: yarn install
91111

92-
- name: Test Brownfield CLI
93-
run: |
94-
yarn workspace @callstack/react-native-brownfield brownfield --version
95-
96-
- name: Build package
112+
- name: Build packages
97113
run: yarn build
98114

99115
- name: Install pods

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)