Move Docker test to GitHub Actions
Summary: The test_docker_android job on Circle CI has a simple function: verify the base community RN Android image can be downloaded, and verify that we can use it to build a container with a compiled Android test app. Since the job is not strictly running a suite of tests, it can be moved to GitHub Actions. It will run on GitHub Actions as a Check on commits to main and pull requests. As building the test image requires the use of the base React Native Android image, we can skip downloading the base container and go straight to building the test image. Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D31521978 fbshipit-source-id: ca8372a1464054e37f2da28a3ecfbc8f84db0408
This commit is contained in:
Родитель
1a9e2d5d55
Коммит
232d02c5f6
|
@ -597,27 +597,6 @@ jobs:
|
|||
name: Build the template application
|
||||
command: cd template/android/ && ./gradlew assembleDebug
|
||||
|
||||
# -------------------------
|
||||
# JOBS: Test Docker
|
||||
# -------------------------
|
||||
test_docker_android:
|
||||
machine:
|
||||
image: ubuntu-2004:202010-01
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Configure Node
|
||||
command: |
|
||||
source ~/.bashrc
|
||||
nvm i node
|
||||
echo y | npx envinfo@latest
|
||||
- run:
|
||||
name: Pulls down the React Native Community Android Docker image
|
||||
command: npm run docker-setup-android
|
||||
- run:
|
||||
name: Builds the Docker image with a compiled instance of the test app
|
||||
command: npm run docker-build-android
|
||||
|
||||
# -------------------------
|
||||
# JOBS: Windows
|
||||
# -------------------------
|
||||
|
@ -855,10 +834,6 @@ workflows:
|
|||
filters:
|
||||
branches:
|
||||
ignore: gh-pages
|
||||
- test_docker_android:
|
||||
filters:
|
||||
branches:
|
||||
ignore: gh-pages
|
||||
- test_windows:
|
||||
filters:
|
||||
branches:
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
name: Test Docker Android Image
|
||||
# This workflow is triggered on commits to main and pull requests.
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [ synchronize ]
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test-docker-android:
|
||||
name: Test Docker
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build Docker image with Android test app
|
||||
run: npm run docker-build-android
|
Загрузка…
Ссылка в новой задаче