11name : PR CI Checks
22
3- on : [pull_request]
3+ on :
4+ pull_request :
5+ push :
6+ branches : [ "v3" ]
47
58jobs :
69 check-commit-message :
@@ -15,14 +18,16 @@ jobs:
1518 excludeDescription : " true"
1619 checkAllCommitMessages : " true"
1720 accessToken : ${{ secrets.PAT_ACTIONS }}
18- error : " One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )"
21+ error : " One of your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )"
22+
1923 Test :
2024 runs-on : ubuntu-latest
2125 steps :
2226 - uses : actions/checkout@v1
27+
2328 - uses : actions/setup-java@v1
2429 with :
25- java-version : " 1.8 "
30+ java-version : " 11 "
2631
2732 - name : create-json
2833 id : create-json
@@ -34,18 +39,21 @@ jobs:
3439 - name : create env
3540 id : create-env
3641 run : |
37- touch .env
38- echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
39- echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
40- echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
42+ touch v3/ .env
43+ echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> v3/ .env
44+ echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> v3/ .env
45+ echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> v3/ .env
4146
4247 - name : Build & Run tests with Maven
43- run : mvn -B package -f pom.xml -Dmaven.javadoc.skip=true
48+ run : mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean test jacoco:report -pl v3 -am -Dmaven.javadoc.skip=true
4449
4550 - name : Codecov
46- uses : codecov/codecov-action@v2.1.0
51+ uses : codecov/codecov-action@v3
4752 with :
4853 token : ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
49- files : target/site/jacoco/jacoco.xml
54+ files : v3/target/site/jacoco/jacoco.xml
55+ flags : unittests
56+
5057 name : codecov-skyflow-java
51- verbose : true
58+ fail_ci_if_error : true
59+ verbose : true
0 commit comments