Skip to content

chore: Semantic release setup #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ jobs:
command: |
brew bundle --file=.circleci/Brewfile.android --no-lock
- save-cache: *cache_save_brew_android

- run:
name: Install Android emulator
shell: /bin/bash -e
Expand All @@ -231,15 +230,13 @@ jobs:
yes | sdkmanager "build-tools;28.0.3" 1> /dev/null
yes | sdkmanager --licenses 1> /dev/null
yes | sdkmanager --list

- run:
name: ADB start/stop
command: |
adb start-server
adb devices
adb kill-server
ls -la ~/.android

- run:
name: Create emulator
command: |
Expand All @@ -249,9 +246,6 @@ jobs:
-k "system-images;android-21;google_apis;x86" \
-g "google_apis" \
-d "Nexus 4"



- run:
name: Start emulator in background
background: true
Expand All @@ -266,20 +260,25 @@ jobs:
-no-boot-anim \
-no-window \
-logcat '*:W' | grep -i "ReactNative"

- run:
name: Wait for emulator to boot
command: yarn build:e2e:android

- run:
name: Wake device
command: |
adb shell input keyevent 82

- run:
name: Run e2e tests
command: yarn test:e2e:android

Release:
<<: *js_defaults
steps:
- *addWorkspace
- run:
name: Release new version
command: yarn semantic-release

# ==============================
# WORK FLOWS
# ==============================
Expand All @@ -302,6 +301,13 @@ workflows:
requires:
- "Test: lint"
- "Test: flow"
- "Release":
requires:
- "Test: iOS e2e"
- "Build: Android release apk"
filters:
branches:
only: master
# - "Test: Android e2e":
# requires:
# - "Test: lint"
Expand Down
5 changes: 5 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"branches": [
"master"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"react-native-macos": "0.60.0-microsoft.50",
"react-native-web": "~0.12.0",
"react-native-windows": "0.61.0",
"react-test-renderer": "16.9.0"
"react-test-renderer": "16.9.0",
"semantic-release": "^17.2.1"
},
"jest": {
"preset": "react-native",
Expand Down
Loading