-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add GitHub action and update readme
- Loading branch information
xiaoweii
committed
Mar 28, 2024
1 parent
6d013e5
commit 180a86e
Showing
20 changed files
with
704 additions
and
228 deletions.
There are no files selected for viewing
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,88 @@ | ||
name: Bug Report | ||
description: Create a report to help us improve | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: repro | ||
attributes: | ||
label: Steps To Reproduce | ||
description: How do you trigger this bug? Please walk us through it step by step. | ||
value: | | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
render: typescript | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: behavior | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: input | ||
id: clickstream-version | ||
attributes: | ||
label: ClickstreamAnalytic React Native SDK Version | ||
placeholder: e.g. 1.0.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: react-native-version | ||
attributes: | ||
label: React Native version | ||
placeholder: e.g. 0.73.5 | ||
validations: | ||
required: true | ||
- type: input | ||
id: platform | ||
attributes: | ||
label: The platform of the bug | ||
placeholder: | | ||
- e.g. Android/iOS/All | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: >- | ||
Include any relevant log output | ||
value: | | ||
<details> | ||
<summary>Log Messages</summary> | ||
``` | ||
INSERT LOG MESSAGES HERE | ||
``` | ||
</details> | ||
render: shell | ||
- type: dropdown | ||
id: regression | ||
attributes: | ||
label: Is this a regression? | ||
multiple: false | ||
options: | ||
- "Yes" | ||
- "No" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: regression-info | ||
attributes: | ||
label: Regression additional context | ||
placeholder: If it was a regression provide the versions used before and after the upgrade. | ||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
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,32 @@ | ||
name: Feature request | ||
description: Suggest an idea for this project | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Is your feature request related to a problem? Please describe. | ||
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: proposal | ||
attributes: | ||
label: Describe the solution you'd like | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: alternatives | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
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,16 @@ | ||
## Issue \# | ||
<!-- If applicable, please link to issue(s) this change addresses --> | ||
|
||
## Description | ||
<!-- Why is this change required? What problem does it solve? --> | ||
|
||
## General Checklist | ||
<!-- Check or cross out if not relevant --> | ||
|
||
- [ ] Added new tests to cover change, if needed | ||
- [ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc) | ||
- [ ] Documentation update for the change if required | ||
- [ ] PR title conforms to conventional commit style | ||
- [ ] If breaking change, documentation/changelog update with migration instructions | ||
|
||
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. |
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,11 @@ | ||
changelog: | ||
categories: | ||
- title: Feature | ||
labels: | ||
- enhancement | ||
- title: Fix | ||
labels: | ||
- bug | ||
- title: Other Changes | ||
labels: | ||
- "*" |
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,22 @@ | ||
name: React Native SDK Build for Android | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
- name: Run build apk | ||
run: | | ||
yarn | ||
cd example/android | ||
./gradlew assembleDebug |
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,22 @@ | ||
name: React Native SDK Build for iOS | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-ios: | ||
runs-on: macos-13-xl | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Initialize submodules | ||
run: | | ||
git submodule update --init | ||
- name: Run build ios | ||
run: | | ||
yarn | ||
cd example/ios | ||
pod install | ||
xcodebuild -workspace ClickstreamReactNativeExample.xcworkspace -scheme ClickstreamReactNativeExample -configuration Debug -sdk iphonesimulator |
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,17 @@ | ||
name: React Native SDK Build | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-rn: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run build | ||
run: | | ||
yarn | ||
yarn run build |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.