Skip to content

Commit 794df23

Browse files
committed
Run fantom tests on main
1 parent 391223d commit 794df23

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88

99
jobs:
10-
build:
10+
build-android:
1111
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Checkout code
@@ -21,3 +21,18 @@ jobs:
2121
- name: Build React Native
2222
run: |
2323
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"
24+
25+
build-fantom:
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
- name: Build Docker Image
31+
run: |
32+
docker build -t react-native-community/react-native .
33+
docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo"
34+
- name: Checkout React Native
35+
run: git clone https://github.com/facebook/react-native.git
36+
- name: Build React Native
37+
run: |
38+
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-fantom.sh"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
echo "Configuring environment for Fantom tests"
6+
sudo apt update
7+
sudo apt install -y git cmake openssl libssl-dev clang
8+
git config --global --add safe.directory '*'
9+
yarn install
10+
yarn fantom

0 commit comments

Comments
 (0)