Skip to content

Commit 05ed16e

Browse files
committed
chore(java-bigquerystorage): migrate and adapt GitHub Actions workflows
1 parent 4b8f88e commit 05ed16e

24 files changed

Lines changed: 31 additions & 986 deletions

java-bigquerystorage/.github/workflows/ci.yaml renamed to .github/workflows/java-bigquerystorage-ci.yaml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,25 @@ on:
55
branches:
66
- main
77
pull_request:
8-
name: ci
8+
name: java-bigquerystorage ci
9+
env:
10+
BUILD_SUBDIR: java-bigquerystorage
911
jobs:
12+
filter:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
library: ${{ steps.filter.outputs.library }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dorny/paths-filter@v3
19+
id: filter
20+
with:
21+
filters: |
22+
library:
23+
- 'java-bigquerystorage/**'
1024
units:
25+
needs: filter
26+
if: ${{ needs.filter.outputs.library == 'true' }}
1127
runs-on: ubuntu-latest
1228
strategy:
1329
fail-fast: false
@@ -24,6 +40,8 @@ jobs:
2440
env:
2541
JOB_TYPE: test
2642
units-java8:
43+
needs: filter
44+
if: ${{ needs.filter.outputs.library == 'true' }}
2745
# Building using Java 17 and run the tests with Java 8 runtime
2846
name: "units (8)"
2947
runs-on: ubuntu-latest
@@ -36,7 +54,7 @@ jobs:
3654
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
3755
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
3856
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
39-
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
57+
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java -P !java17" >> $GITHUB_ENV
4058
shell: bash
4159
- uses: actions/setup-java@v3
4260
with:
@@ -46,18 +64,24 @@ jobs:
4664
env:
4765
JOB_TYPE: test
4866
windows:
67+
needs: filter
68+
if: ${{ needs.filter.outputs.library == 'true' }}
4969
runs-on: windows-latest
5070
steps:
71+
- name: Support longpaths
72+
run: git config --system core.longpaths true
5173
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5274
- uses: actions/setup-java@v2
5375
with:
5476
distribution: temurin
5577
java-version: 8
5678
- run: java -version
57-
- run: .kokoro/build.bat
79+
- run: .kokoro/build.sh
5880
env:
5981
JOB_TYPE: test
6082
dependencies:
83+
needs: filter
84+
if: ${{ needs.filter.outputs.library == 'true' }}
6185
runs-on: ubuntu-latest
6286
strategy:
6387
matrix:
@@ -71,6 +95,8 @@ jobs:
7195
- run: java -version
7296
- run: .kokoro/dependencies.sh
7397
javadoc:
98+
needs: filter
99+
if: ${{ needs.filter.outputs.library == 'true' }}
74100
runs-on: ubuntu-latest
75101
steps:
76102
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -83,6 +109,8 @@ jobs:
83109
env:
84110
JOB_TYPE: javadoc
85111
lint:
112+
needs: filter
113+
if: ${{ needs.filter.outputs.library == 'true' }}
86114
runs-on: ubuntu-latest
87115
steps:
88116
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -94,15 +122,3 @@ jobs:
94122
- run: .kokoro/build.sh
95123
env:
96124
JOB_TYPE: lint
97-
clirr:
98-
runs-on: ubuntu-latest
99-
steps:
100-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
101-
- uses: actions/setup-java@v2
102-
with:
103-
distribution: temurin
104-
java-version: 8
105-
- run: java -version
106-
- run: .kokoro/build.sh
107-
env:
108-
JOB_TYPE: clirr

java-bigquerystorage/.github/.OwlBot-hermetic.yaml

Lines changed: 0 additions & 99 deletions
This file was deleted.

java-bigquerystorage/.github/CODEOWNERS

Lines changed: 0 additions & 14 deletions
This file was deleted.

java-bigquerystorage/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

java-bigquerystorage/.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

java-bigquerystorage/.github/ISSUE_TEMPLATE/support_request.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

java-bigquerystorage/.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

java-bigquerystorage/.github/auto-label.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

java-bigquerystorage/.github/blunderbuss.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

java-bigquerystorage/.github/dependabot.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)