-
Notifications
You must be signed in to change notification settings - Fork 152
48 lines (45 loc) · 1.85 KB
/
build.yml
File metadata and controls
48 lines (45 loc) · 1.85 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
42
43
44
45
46
47
48
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build-android:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker Image
run: |
docker build -t react-native-community/react-native .
docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo"
- name: Checkout React Native
run: git clone https://github.com/facebook/react-native.git
- name: Build React Native
run: |
docker run --rm --ulimit nofile=10240 -v "$(pwd)/scripts/":/scripts -v "$(pwd)/react-native/":/react-native -w /react-native react-native-community/react-native /bin/sh -c "/scripts/test-react-native-setup.sh"
build-fantom:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker Image
run: |
docker build -t react-native-community/react-native .
docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo"
- name: Checkout React Native
run: git clone https://github.com/facebook/react-native.git
- name: Create reports directory
run: mkdir -p $(pwd)/fantom-reports
- name: Run Fantom tests
continue-on-error: true
run: |
docker run --rm --ulimit nofile=10240 -v "$(pwd)/scripts/":/scripts -v "$(pwd)/react-native/":/react-native -v "$(pwd)/fantom-reports/":/react-native/private/react-native-fantom/build/reports -w /react-native react-native-community/react-native /bin/sh -c "/scripts/test-react-native-fantom.sh"
- name: Upload Fantom build reports
uses: actions/upload-artifact@v4
if: always()
with:
name: fantom-build-reports
path: fantom-reports/
retention-days: 30