Skip to content

Conversation

mnoman09
Copy link
Contributor

@mnoman09 mnoman09 commented Apr 19, 2022

Summary

  • Removes travis yaml from react sdk and moved all the stages to git action.

NOTE:
Passed build link

Test plan

All tests should pass

if: ${{ github.event_name == 'pull_request' }}
run: |
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
Copy link
Contributor

@msohailhussain msohailhussain Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove from here.

Copy link
Contributor

@msohailhussain msohailhussain left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- run: yarn test

integration_tests:
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@mnoman/gitAction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@mnoman/gitAction
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@master
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
Copy link
Contributor

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]+/ 
hub version
- name: script
env:
travis_tag: ${GITHUB_REF#refs/*/}
Copy link
Contributor

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.

@msohailhussain msohailhussain marked this pull request as ready for review April 26, 2022 21:45
@mnoman09 mnoman09 removed their assignment Apr 27, 2022
Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@msohailhussain msohailhussain merged commit 99ec1d8 into master Apr 27, 2022
@msohailhussain msohailhussain deleted the mnoman/gitAction branch April 27, 2022 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants