Skip to content

Commit 658bdce

Browse files
authored
Port build CircleCI to GitHub Actions (#227)
* Port build CircleCI to GitHub Actions * Update ubuntu image used
1 parent 4df9965 commit 658bdce

File tree

2 files changed

+23
-50
lines changed

2 files changed

+23
-50
lines changed

.circleci/config.yml

-50
This file was deleted.

.github/workflows/build.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Build Docker Image
16+
run: |
17+
docker build -t react-native-community/react-native .
18+
docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo"
19+
- name: Checkout React Native
20+
run: git clone https://github.com/facebook/react-native.git
21+
- name: Build React Native
22+
run: |
23+
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"

0 commit comments

Comments
 (0)