Skip to content

Commit f182f10

Browse files
authored
Adds github actions build checks (#1576)
Adds CI based on github actions.
1 parent 6e75d66 commit f182f10

File tree

4 files changed

+135
-0
lines changed

4 files changed

+135
-0
lines changed

.github/workflows/android-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test Android build
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
paths:
7+
- 'android/**'
8+
push:
9+
branches:
10+
- master
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
env:
15+
WORKING_DIRECTORY: examples/Example
16+
concurrency:
17+
group: android-${{ github.ref }}
18+
cancel-in-progress: true
19+
steps:
20+
- name: checkout
21+
uses: actions/checkout@v2
22+
- name: Use Node.js 14
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 14
26+
cache: 'yarn'
27+
- name: Install node dependencies
28+
working-directory: ${{ env.WORKING_DIRECTORY }}
29+
run: yarn
30+
- name: Build app
31+
working-directory: ${{ env.WORKING_DIRECTORY }}/android
32+
run: ./gradlew assembleDebug --console=plain

.github/workflows/ios-build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test iOS build
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
paths:
7+
- 'ios/**'
8+
push:
9+
branches:
10+
- master
11+
jobs:
12+
build:
13+
runs-on: macos-latest
14+
env:
15+
WORKING_DIRECTORY: examples/Example
16+
concurrency:
17+
group: ios-${{ github.ref }}
18+
cancel-in-progress: true
19+
steps:
20+
- name: checkout
21+
uses: actions/checkout@v2
22+
- name: Use Node.js 14
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 14
26+
cache: 'yarn'
27+
- name: Install node dependencies
28+
working-directory: ${{ env.WORKING_DIRECTORY }}
29+
run: yarn
30+
- name: Install pods
31+
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
32+
run: pod install
33+
- name: Build app
34+
working-directory: ${{ env.WORKING_DIRECTORY }}
35+
run: yarn ios
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test Example App TypeScript and Lint
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
paths:
7+
- 'examples/Example/**'
8+
push:
9+
branches:
10+
- master
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
env:
15+
WORKING_DIRECTORY: examples/Example
16+
concurrency:
17+
group: static-example-${{ github.ref }}
18+
cancel-in-progress: true
19+
steps:
20+
- name: checkout
21+
uses: actions/checkout@v2
22+
- name: Use Node.js 14
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 14
26+
cache: 'yarn'
27+
- name: Install root node dependencies
28+
run: yarn
29+
- name: Install example app node dependencies
30+
working-directory: ${{ env.WORKING_DIRECTORY }}
31+
run: yarn
32+
- name: Check types
33+
working-directory: ${{ env.WORKING_DIRECTORY }}
34+
run: yarn tsc --noEmit
35+
- name: Lint
36+
working-directory: ${{ env.WORKING_DIRECTORY }}
37+
run: yarn lint-check
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test TypeScript and Lint
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
paths:
7+
- 'src/**'
8+
- '*'
9+
push:
10+
branches:
11+
- master
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
concurrency:
16+
group: static-example-${{ github.ref }}
17+
cancel-in-progress: true
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v2
21+
- name: Use Node.js 14
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 14
25+
cache: 'yarn'
26+
- name: Install node dependencies
27+
run: yarn
28+
- name: Check types
29+
run: yarn tsc --noEmit
30+
- name: Lint
31+
run: yarn lint-check

0 commit comments

Comments
 (0)