Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
ci: Adopt GitHub Actions in gax-java: unit tests and linkage monitor (#…
Browse files Browse the repository at this point in the history
…1062)

* ci.yaml

* echo message

* Set directory to run the build script

* Code coverage script

* Added Linkage Monitor
  • Loading branch information
suztomo committed May 21, 2020
1 parent c62bb8a commit a8d5ad0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
@@ -0,0 +1,34 @@
on:
push:
branches:
- master
pull_request:
name: ci
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions ${{ matrix.java }}
linkage-monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/linkage-monitor.sh
9 changes: 7 additions & 2 deletions .kokoro/build.sh
Expand Up @@ -15,7 +15,9 @@

set -eo pipefail

cd github/gax-java/
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
## cd to the parent directory, i.e. the root of the git repo
cd ${scriptDir}/..

# Print out Java
java -version
Expand All @@ -24,4 +26,7 @@ echo $JOB_TYPE
./gradlew assemble
./gradlew build install

bash $KOKORO_GFILE_DIR/codecov.sh
if [ "${REPORT_COVERAGE}" == "true" ]
then
bash ${KOKORO_GFILE_DIR}/codecov.sh
fi
4 changes: 3 additions & 1 deletion .kokoro/linkage-monitor.sh
Expand Up @@ -17,7 +17,9 @@ set -eo pipefail
# Display commands being run.
set -x

cd github/gax-java/
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
## cd to the parent directory, i.e. the root of the git repo
cd ${scriptDir}/..

# Print out Java version
java -version
Expand Down

0 comments on commit a8d5ad0

Please sign in to comment.