deps: Update dependency urllib3 to v1.26.16 #580
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# Github action job to test core java library features on | |
# downstream client libraries before they are released. | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
pull_request_target: | |
types: [ labeled ] | |
schedule: | |
- cron: '0 2 * * *' | |
name: ci | |
jobs: | |
units: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [8, 11, 17] | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
distribution: zulu | |
java-version: ${{matrix.java}} | |
- run: java -version | |
- run: .kokoro/build.sh | |
env: | |
JOB_TYPE: test | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Support longpaths | |
run: git config --system core.longpaths true | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
distribution: zulu | |
java-version: 8 | |
- run: java -version | |
- run: .kokoro/build.bat | |
env: | |
JOB_TYPE: test | |
dependencies: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [8, 11, 17] | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
distribution: zulu | |
java-version: ${{matrix.java}} | |
- run: java -version | |
- run: .kokoro/dependencies.sh | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
distribution: zulu | |
java-version: 11 | |
- run: java -version | |
- run: .kokoro/build.sh | |
env: | |
JOB_TYPE: lint | |
clirr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
distribution: zulu | |
java-version: 8 | |
- run: java -version | |
- run: .kokoro/build.sh | |
env: | |
JOB_TYPE: clirr | |
# graalvm17: | |
# # run job on proper workflow event triggers (skip job for pull_request event from forks and only run pull_request_target for "tests: run" label) | |
# if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'tests: run' }}" | |
# name: graalvm17 | |
# runs-on: ubuntu-latest | |
# permissions: | |
# contents: 'read' | |
# id-token: 'write' | |
# issues: write | |
# pull-requests: write | |
# steps: | |
# - name: Remove PR label | |
# if: "${{ github.event.action == 'labeled' && github.event.label.name == 'tests: run' }}" | |
# uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# script: | | |
# try { | |
# await github.rest.issues.removeLabel({ | |
# name: 'tests: run', | |
# owner: context.repo.owner, | |
# repo: context.repo.repo, | |
# issue_number: context.payload.pull_request.number | |
# }); | |
# } catch (e) { | |
# console.log('Failed to remove label. Another job may have already removed it!'); | |
# } | |
# | |
# - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 | |
# with: | |
# ref: ${{ github.event.pull_request.head.sha }} | |
# repository: ${{ github.event.pull_request.head.repo.full_name }} | |
# | |
# - name: Set up GraalVM | |
# uses: graalvm/setup-graalvm@b11d36630f94ed5864e0a680a979b5afde449e9d | |
# with: | |
# version: 'latest' | |
# java-version: '17' | |
# components: 'native-image' | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# | |
# - id: 'auth' | |
# name: Authenticate to Google Cloud | |
# uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # v1.0.0 | |
# with: | |
# workload_identity_provider: ${{ secrets.PROVIDER_NAME }} | |
# service_account: ${{ secrets.SERVICE_ACCOUNT }} | |
# access_token_lifetime: 600s | |
# | |
# - id: 'secrets' | |
# name: Get Secrets | |
# uses: google-github-actions/get-secretmanager-secrets@7fced8b6579c75d7c465165b38ec29175d9a469c # v1.0.0 | |
# with: | |
# secrets: |- | |
# ALLOYDB_INSTANCE_URI:${{ secrets.GOOGLE_CLOUD_PROJECT }}/ALLOYDB_INSTANCE_URI | |
# ALLOYDB_CLUSTER_PASS:${{ secrets.GOOGLE_CLOUD_PROJECT }}/ALLOYDB_CLUSTER_PASS | |
# | |
# - run: .kokoro/build.sh | |
# env: | |
# ALLOYDB_DB: 'postgres' | |
# ALLOYDB_USER: 'postgres' | |
# ALLOYDB_PASS: '${{ steps.secrets.outputs.ALLOYDB_CLUSTER_PASS }}' | |
# ALLOYDB_INSTANCE_URI: '${{ steps.secrets.outputs.ALLOYDB_INSTANCE_URI }}' | |
# JOB_TYPE: graalvm17 | |
# shell: bash | |
# | |
# - name: FlakyBot | |
# # only run flakybot on periodic (schedule) and continuous (push) events | |
# if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && runner.os == 'Linux' && always() }} | |
# run: | | |
# curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L | |
# chmod +x ./flakybot | |
# ./flakybot --repo ${{github.repository}} --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | |
# | |
unitsAndE2e: | |
# run job on proper workflow event triggers (skip job for pull_request event from forks and only run pull_request_target for "tests: run" label) | |
if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'tests: run' }}" | |
name: units + e2e | |
runs-on: [self-hosted, linux, x64] | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Remove PR label | |
if: "${{ github.event.action == 'labeled' && github.event.label.name == 'tests: run' }}" | |
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
try { | |
await github.rest.issues.removeLabel({ | |
name: 'tests: run', | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number | |
}); | |
} catch (e) { | |
console.log('Failed to remove label. Another job may have already removed it!'); | |
} | |
- name: Checkout code | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Set up JDK | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 | |
with: | |
distribution: 'zulu' | |
java-version: 8 | |
- name: Setup Maven Action | |
uses: s4u/setup-maven-action@c1ef1c9458a52c0b6ac714574c4694a9fcf00d45 | |
with: | |
java-version: 8 | |
- id: 'auth' | |
name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # v1.0.0 | |
with: | |
workload_identity_provider: ${{ secrets.PROVIDER_NAME }} | |
service_account: ${{ secrets.SERVICE_ACCOUNT }} | |
access_token_lifetime: 600s | |
- name: Get Secrets | |
id: 'secrets' | |
uses: google-github-actions/get-secretmanager-secrets@4d6d3dfd94110800dda8d84109cb6da0f6a5919d # v1.0.1 | |
with: | |
secrets: |- | |
ALLOYDB_INSTANCE_NAME:${{ secrets.GOOGLE_CLOUD_PROJECT }}/ALLOYDB_INSTANCE_URI | |
ALLOYDB_CLUSTER_PASS:${{ secrets.GOOGLE_CLOUD_PROJECT }}/ALLOYDB_CLUSTER_PASS | |
- name: Run tests | |
env: | |
ALLOYDB_DB: 'postgres' | |
ALLOYDB_USER: 'postgres' | |
ALLOYDB_PASS: '${{ steps.secrets.outputs.ALLOYDB_CLUSTER_PASS }}' | |
ALLOYDB_INSTANCE_NAME: '${{ steps.secrets.outputs.ALLOYDB_INSTANCE_NAME }}' | |
JOB_TYPE: integration | |
run: .kokoro/build.sh | |
shell: bash | |
- name: Check Coverage | |
run: .kokoro/check_coverage.sh | |
- name: FlakyBot | |
# only run flakybot on periodic (schedule) and continuous (push) events | |
if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && runner.os == 'Linux' && always() }} | |
run: | | |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L | |
chmod +x ./flakybot | |
./flakybot --repo ${{github.repository}} --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |