Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/build-and-test-on-pr-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.