From 267fe69ace13f8ab77681e6ff5900844a14fe010 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 18 Feb 2021 14:49:31 -0800 Subject: [PATCH] changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- .github/workflows/samples.yaml | 14 ++++++++++++++ .kokoro/build.sh | 4 ++-- synth.metadata | 3 ++- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/samples.yaml diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml new file mode 100644 index 000000000..c46230a78 --- /dev/null +++ b/.github/workflows/samples.yaml @@ -0,0 +1,14 @@ +on: + pull_request: +name: samples +jobs: + checkstyle: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Run checkstyle + run: mvn -P lint --quiet --batch-mode checkstyle:check + working-directory: samples/snippets diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 7dd822666..4ef0f0e85 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh if [[ "${ENABLE_BUILD_COP}" == "true" ]] then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/google-http-java-client + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop + ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/google-http-java-client fi echo "exiting with ${RETURN_CODE}" diff --git a/synth.metadata b/synth.metadata index a50f86382..bbc2ae460 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-http-java-client.git", - "sha": "8f95371cf5681fbc67bd598d74089f38742a1177" + "sha": "9e8fcfffc6d92505528aff0a89c169bf3e812c41" } }, { @@ -30,6 +30,7 @@ ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", + ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", ".kokoro/coerce_logs.sh",