8000 chore: removed travis yml and added git action support by mnoman09 · Pull Request #469 · optimizely/java-sdk · GitHub
[go: up one dir, main page]

Skip to content

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

8000 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 27 commits into from
Apr 14, 2022
Merged

Conversation

mnoman09
Copy link
Contributor
@mnoman09 mnoman09 commented Mar 24, 2022

Summary

  • We remove travis yaml from android and moved all the stages to git action.
  • Added build.yml file containing build setup and commands option

NOTE:
Passed build link:

Test plan

All tests should pass

@mnoman09 mnoman09 closed this Mar 24, 2022
@mnoman09 mnoman09 reopened this Mar 24, 2022
@coveralls
Copy link
coveralls commented Mar 24, 2022

Pull Request Test Coverage Report for Build 1979

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.806%

Totals Coverage Status
Change from base Build 1970: 0.0%
Covered Lines: 4889
Relevant Lines: 5384

💛 - Coveralls

@mnoman09 mnoman09 closed this Mar 24, 2022
@mnoman09 mnoman09 reopened this Mar 24, 2022
@mnoman09 mnoman09 closed this Mar 25, 2022
@mnoman09 mnoman09 reopened this Mar 25, 2022
@mnoman09 mnoman09 changed the title chore: Moved to git action chore: removed travis yml and added git action support Mar 30, 2022
@mnoman09 mnoman09 marked this pull request as ready for review March 30, 2022 15:48
@mnoman09 mnoman09 requested a review from a team as a code owner March 30, 2022 15:48
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.

Looks good. A couple of suggestions.

echo "$GITHUB_CONTEXT"
home/runner/travisci-tools/trigger-script-with-status-update.sh
test:
runs-on: macos-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

why macos?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see this is not fixed yet.

@mnoman09 mnoman09 closed this Apr 4, 2022
@mnoman09 mnoman09 reopened this Apr 4, 2022
@mnoman09 mnoman09 removed their assignment Apr 5, 2022
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 with a nit

Comment on lines 34 to 46
BUILD_NUMBER: ${{ github.run_id }}
GITHUB_CONTEXT: ${{ toJson(github) }}
EVENT_NAME: ${{ github.event_name }}
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
TRAVIS_PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }}
TRAVIS_PULL_REQUEST: ${{ github.event.pull_request.number }}
EVENT_MESSAGE: ${{ github.event.message }}
HEAD_REF: ${{ github.head_ref }}
REF_NAME: ${{ github.ref_name }}
secrets:
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I see factoring out to "integration_test.yml" looks good, but not much gain (more overhead than sharing). I'll leave it up to you. I guess you already tried, but wondering if we cannot use ${{ github }} directly in "integration_test.yml" instead of passing as input parameters.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, i actually asked for it that cleans-up our main.yaml file.
Regarding your suggestion we tried but github is very specific to passing secrets info to actions, that's why this was not done.

echo "$GITHUB_CONTEXT"
home/runner/travisci-tools/trigger-script-with-status-update.sh
test:
runs-on: macos-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this is not fixed yet.

@jaeopt
Copy link
Contributor
jaeopt commented Apr 8, 2022

@mnoman09 I tried to release android-sdk with actions flow first time, and found a couple of errors. We can do the same fix for java-sdk.

on:
  push:
    branches: [ master ]
    tags:
      - '*'
  publish:
    if: startsWith(github.ref, 'refs/tags/')

@jaeopt
Copy link
Contributor
jaeopt commented Apr 8, 2022

@mnoman09 Also found that "publish" task is launched even before unit tests completed. Either we can make it wait until all tests completed or we can skip them for publish (since we already done the same tests before publish).

@@ -0,0 +1,16 @@
name: Source clear

on:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add master branch 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

@jaeopt jaeopt merged commit fcb5524 into master Apr 14, 2022
@jaeopt jaeopt deleted the mnoman/gitAction branch April 14, 2022 21:03
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.

5 participants
0