- Notifications
You must be signed in to change notification settings - Fork 37
Added react yml and integeration test github action #157
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
Conversation
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV | ||
echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove from here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please address the requested changes.
if: ${{ github.event_name != 'pull_request' }} | ||
run: | | ||
echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV | ||
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV |
.github/workflows/react.yml Outdated
- run: yarn test | ||
| ||
integration_tests: | ||
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@mnoman/gitAction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@mnoman/gitAction | |
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@master |
.github/workflows/react.yml Outdated
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }} | ||
| ||
publish: | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add one more condition here.
tag =~ /^[0-9]+\.[0-9]+\.[0-9]+/
.github/workflows/react.yml Outdated
hub version | ||
- name: script | ||
env: | ||
travis_tag: ${GITHUB_REF#refs/*/} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem right, please check what comes in travis_tag, give a try and push tag to this branch but make sure to remove publishing script.
Co-authored-by: Mirza Sohail Hussain <mirza.sohailhussain@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Summary
NOTE:
Passed build link
Test plan
All tests should pass