Skip to content

chore: removed travis yml and added git action support #753

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 35 commits into from
Apr 26, 2022

Conversation

ozayr-zaviar
Copy link
Contributor

Summary

  • We remove travis yaml from javascript-sdk and moved all the stages to git action.

NOTE:
Please update this, this and this line branch name to master before merging.

Test plan

All tests should pass

@coveralls
Copy link

coveralls commented Apr 15, 2022

Coverage Status

Coverage remained the same at 97.185% when pulling 71064ea on uzair/gitactions into e092f81 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-97.2%) to 0.0% when pulling 4dc1243 on uzair/gitactions into e092f81 on master.

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 comments and also revert links to master.

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

v3

crossbrowser_and_umd_unit_tests:
runs-on: ubuntu-latest
env:
BROWSER_STACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
Copy link
Contributor

Choose a reason for hiding this comment

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

rename it to BROWSERSTACK_USERNAME

runs-on: ubuntu-latest
env:
BROWSER_STACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

BROWSER_STACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

update across all checkouts to v3.

matrix:
node: [ '8', '9', '10', '12', '14' ]
steps:
- uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

update

path-to-lcov: ./packages/optimizely-sdk/coverage/lcov.info
flag-name: run-${{ matrix.node }}
# This is a parallel build so need this
parallel: true
Copy link
Contributor

Choose a reason for hiding this comment

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

what does it mean parallel build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are running unit test on multiple node versions and multiple posts on coveralls are required, thats why we are sending those posts in parallel.

"cover": "nyc report -r lcov",
"precoveralls": "npm run cover",
"coveralls": "< coverage/lcov.info coveralls",
"coveralls": "nyc --reporter=lcov npm test",
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The previous precoveralls and cover is required to post coveralls from travis but it is not working on git actions so we post using 3rd party git action coverallsapp/github-action@master and is no longer require 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.

lgtm

@msohailhussain msohailhussain marked this pull request as ready for review April 22, 2022 06:20
@msohailhussain msohailhussain requested a review from a team as a code owner April 22, 2022 06:20
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

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 it.

@msohailhussain msohailhussain merged commit fc625f0 into master Apr 26, 2022
@msohailhussain msohailhussain deleted the uzair/gitactions branch April 26, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants