-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port build CircleCI to GitHub Actions (#227)
* Port build CircleCI to GitHub Actions * Update ubuntu image used
- Loading branch information
Showing
2 changed files
with
23 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
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" |