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

Commit

Permalink
feat: configure initial sp version (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 authored May 17, 2021
1 parent 924adf0 commit 037f4d4
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
on:
'on':
push:
branches:
- master
pull_request:
- 1.64.0-sp
pull_request: null
name: ci
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 11]
java:
- 7
- 8
- 11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
Expand All @@ -19,7 +22,6 @@ jobs:
- run: .kokoro/build.sh
env:
JOB_TYPE: test

bazel:
runs-on: ubuntu-latest
container: gcr.io/gapic-images/googleapis-bazel:20210105
Expand All @@ -29,55 +31,64 @@ jobs:
with:
java-version: 8
- run: java -version

- name: Bazel File Cache Setup
id: cache-bazel
uses: actions/cache@v2
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-bazel-20210105-${{ secrets.CACHE_VERSION }}

- name: Bazel Cache Not Found
if: steps.cache-bazel.outputs.cache-hit != 'true'
run: |
echo "No cache found."
- name: Bazel Cache Found
if: steps.cache-bazel.outputs.cache-hit == 'true'
run: |
run: >
echo -n "Cache found. Cache size: "
du -sh ~/.cache/bazel
echo "If the cache seems broken, update the CACHE_VERSION secret in"
echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions"
echo
"https://github.com/googleapis/googleapis-discovery/settings/secrets/actions"
echo "(use any random string, any GUID will work)"
echo "and it will start over with a clean cache."
echo "The old one will disappear after 7 days."
echo "The old one will disappear after 7 days."
- name: Run bazel tests
run: bazel --batch test //... --noshow_progress --test_output=errors

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: test-artifacts
path: ~/.cache/bazel/*/*/*/gax-java/bazel-out/*/testlogs/*
retention-days: 5

linkage-monitor:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11]
java:
- 8
- 11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- run: java -version
- name: Build and install local Maven repository
run: ./gradlew build publishToMavenLocal -x test -x signMavenJavaPublication
- name: Generate artifact list (linkage-monitor-artifacts.txt) for Linkage Monitor
run: >-
./gradlew build publishToMavenLocal -x test -x
signMavenJavaPublication
- name: >-
Generate artifact list (linkage-monitor-artifacts.txt) for Linkage
Monitor
run: ./gradlew createLinkageMonitorArtifactList
- name: Check dependency conflicts with the latest Libraries BOM
uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
uses: >-
GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
- name: Check dependency conflicts in the gax artifacts
run: ./gradlew checkJavaLinkage

0 comments on commit 037f4d4

Please sign in to comment.