diff --git a/.github/workflows/build-and-test-on-pr-events.yml b/.github/workflows/build-and-test-on-pr-events.yml index 6d9b8819c4d96..78f1dd291f86e 100644 --- a/.github/workflows/build-and-test-on-pr-events.yml +++ b/.github/workflows/build-and-test-on-pr-events.yml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License -name: Pull Request Build and Test Workflow +name: Pull Request Build with Unit Test Workflow # Run this workflow every time a new pull request is created in the repository on: @@ -25,7 +25,7 @@ on: jobs: build: # Name the Job - name: Build Pull Request + name: Build Pull Request and run all unit tests # Set the type of machine to run on runs-on: ubuntu-latest steps: @@ -40,8 +40,6 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - - name: Build with Gradle - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build with Gradle and run all unit tests # exclude the streams test and connect test run: ./gradlew cleanTest :clients:unitTest :core:unitTest --no-daemon -PxmlFindBugsReport=true -PtestLoggingEvents=started,passed,skipped,failed diff --git a/.github/workflows/build-and-upload-archives-upon-creating-tags.yml b/.github/workflows/build-and-upload-archives-upon-creating-tags.yml index 72f5144a1b588..a4e8d2d1593da 100644 --- a/.github/workflows/build-and-upload-archives-upon-creating-tags.yml +++ b/.github/workflows/build-and-upload-archives-upon-creating-tags.yml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License -name: Build and Upload Archives upon Creating Tags +name: Build with All Tests and Upload Archives upon Creating Tags Workflow # Run this workflow every time a tag is created/pushed on: @@ -44,17 +44,12 @@ jobs: - name: Set up release version env variable run: | echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Verify the release version + - name: Print the release version run: | - echo "Release version: ${{ env.RELEASE_VERSION }}" + echo "Release version (tag name): ${{ env.RELEASE_VERSION }}" - name: Build with Gradle and run all tests # exclude the streams test and connect test run: ./gradlew cleanTest :clients:test :core:test --no-daemon -PxmlFindBugsReport=true -PtestLoggingEvents=started,passed,skipped,failed - name: Upload archive run: | - # TODO: uncomment the below command which uploads the archive once we have verified below things: - # 1. This workflow gets triggered upon tag creation/push - # 2. The release version (${{ env.RELEASE_VERSION }}) is extracted and printed in the console correctly - # 3. Disable the uploading archive feature in Travis. Otherwise, both Travis and Github Action will - # try to upload the same archive - # ./gradlew -Pversion=${{ env.RELEASE_VERSION }} :clients:uploadArchives :core:uploadArchives --no-daemon + ./gradlew -Pversion=${{ env.RELEASE_VERSION }} :clients:uploadArchives :core:uploadArchives --no-daemon diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4e9f19ce4f14c..0000000000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -sudo: required -dist: trusty -language: java - -jdk: - - oraclejdk8 - -# By default, the install step will run ./gradlew assemble, which actually builds. Skip this step and do the actual -# build during the build step. -install: true - -# exclude the streams test and connect test -script: - - ./gradlew cleanTest :clients:test :core:test --no-daemon -PxmlFindBugsReport=true -PtestLoggingEvents=started,passed,skipped,failed - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ - -cache: - directories: - - "$HOME/.m2/repository" - - "$HOME/.gradle/caches/" - - "$HOME/.gradle/wrapper/" - -# This will triger publishing artifacts to bintray upon the creation of a new tag in the "x.y.z.w" format. -deploy: - provider: script - script: ./gradlew -Pversion=$TRAVIS_TAG :clients:uploadArchives :core:uploadArchives --no-daemon - skip_cleanup: true - on: - tags: true - all_branches: true - condition: $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$