Skip to content

build(deps): bump actions/checkout from 6.0.2 to 6.0.3 #774

build(deps): bump actions/checkout from 6.0.2 to 6.0.3

build(deps): bump actions/checkout from 6.0.2 to 6.0.3 #774

Workflow file for this run

# Copyright 2026 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
#
# https://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.
# Checks that are intended to run on PRs containing Java code.
name: YAML/Python PR
on:
pull_request:
branches:
- 'main'
paths:
# Include pom.xml files except in v1 and v2
- '**/pom.xml'
- '!v1/**/pom.xml'
- '!v2/**/pom.xml'
# Include yaml and python modules
- 'yaml/**'
- 'python/**'
# Include python files and Dockerfiles used for YAML and xlang templates.
- '**.py'
# Include Python requirements files for dependency updates
- '**/requirements.txt'
- 'python/default_base_*.txt'
- 'python/generate_all_dependencies.sh'
# Plugin updates
- 'plugins/core-plugin/**'
- 'plugins/templates-maven-plugin/**'
# Include relevant GitHub Action files for running these checks.
# This will make it easier to verify action changes don't break anything.
- '.github/actions/setup-env/*'
- '.github/workflows/yaml-pr.yml'
schedule:
- cron: "10 3/12 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.shade=error
IT_REGION: us-west2
permissions:
actions: write
checks: write
contents: read
pull-requests: read
statuses: write
jobs:
verify_generated_templates:
name: Verify Generated Templates
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Install dependencies
run: pip install pyyaml
- name: Generate Templates
run: python yaml/src/main/python/generate_yaml_java_templates.py yaml/src/main/yaml
- name: Check for Uncommitted Changes
run: |
git diff --exit-code || (echo "::error::Generated templates are out of date. Please run 'python yaml/src/main/python/generate_yaml_java_templates.py yaml/src/main/yaml' locally and commit the changes." && exit 1)
spotless_check:
name: Spotless
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Spotless
run: ./cicd/run-spotless \
--modules-to-build="YAML"
checkstyle_check:
name: Checkstyle
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Checkstyle
run: |
./cicd/run-checkstyle \
--modules-to-build="YAML"
java_build:
name: Build
timeout-minutes: 60
runs-on: [self-hosted, it]
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Build
run: |
./cicd/run-build \
--modules-to-build="YAML"
- name: Cleanup Java Environment
uses: ./.github/actions/cleanup-java-env
java_unit_tests:
name: Unit Tests
needs: [java_build]
timeout-minutes: 60
runs-on: [self-hosted, it]
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Unit Tests
run: |
./cicd/run-unit-tests \
--modules-to-build="YAML"
- name: Upload Unit Tests Report
uses: actions/upload-artifact@v7
if: always() # always run even if the previous step fails
with:
name: surefire-unit-test-results
path: |
**/surefire-reports/TEST-*.xml
**/surefire-reports/*.html
**/surefire-reports/html/**
retention-days: 1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GoogleCloudPlatform/DataflowTemplates
files: 'target/site/jacoco-aggregate/jacoco.xml'
- name: Cleanup Java Environment
uses: ./.github/actions/cleanup-java-env
if: always()
java_integration_smoke_tests_templates:
name: Dataflow Templates Integration Smoke Tests
needs: [spotless_check, checkstyle_check, java_build, java_unit_tests]
timeout-minutes: 60
# Run on any runner that matches all the specified runs-on values.
runs-on: [self-hosted, it]
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Integration Smoke Tests
run: |
./cicd/run-it-smoke-tests \
--modules-to-build="YAML" \
--it-region="${{ env.IT_REGION }}" \
--it-project="cloud-teleport-testing" \
--it-artifact-bucket="cloud-teleport-testing-it-gitactions" \
--it-private-connectivity="datastream-connect-2"
- name: Upload Smoke Tests Report
uses: actions/upload-artifact@v7
if: always() # always run even if the previous step fails
with:
name: surefire-smoke-test-results
path: |
**/surefire-reports/TEST-*.xml
**/surefire-reports/*.html
**/surefire-reports/html/**
retention-days: 1
- name: Cleanup Java Environment
uses: ./.github/actions/cleanup-java-env
if: always()
java_integration_tests_templates:
name: Dataflow Templates Integration Tests
needs: [java_integration_smoke_tests_templates]
timeout-minutes: 240
# Run on any runner that matches all the specified runs-on values.
runs-on: [self-hosted, it]
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Integration Tests
run: |
./cicd/run-it-tests \
--modules-to-build="YAML" \
--it-region="${{ env.IT_REGION }}" \
--it-project="cloud-teleport-testing" \
--it-integration-test-parallelism=6 \
--it-thread-count=6 \
--it-artifact-bucket="cloud-teleport-testing-it-gitactions" \
--it-private-connectivity="datastream-connect-2"
- name: Upload Integration Tests Report
uses: actions/upload-artifact@v7
if: always() # always run even if the previous step fails
with:
name: surefire-integration-test-results
path: |
**/surefire-reports/TEST-*.xml
**/surefire-reports/*.html
**/surefire-reports/html/**
retention-days: 1
- name: Integration Test report on GitHub
uses: dorny/test-reporter@v3
if: always()
with:
name: Integration Test report on GitHub
path: '**/surefire-reports/TEST-*.xml'
reporter: java-junit
only-summary: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
fail-on-error: 'false'
list-suites: 'failed'
list-tests: 'failed'
- name: Cleanup Java Environment
uses: ./.github/actions/cleanup-java-env
if: always()
java_load_tests_templates:
if: contains(github.event.pull_request.labels.*.name, 'run-load-tests')
name: Dataflow Templates Load Tests
needs: [spotless_check, checkstyle_check, java_build, java_unit_tests, java_integration_tests_templates]
timeout-minutes: 600
# Run on any runner that matches all the specified runs-on values.
runs-on: [self-hosted, perf]
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Load Tests
run: |
./cicd/run-load-tests \
--it-region="${{ env.IT_REGION }}" \
--it-project="cloud-teleport-testing" \
--it-artifact-bucket="cloud-teleport-testing-it-gitactions" \
--it-private-connectivity="datastream-connect-2"
- name: Cleanup Java Environment
uses: ./.github/actions/cleanup-java-env
if: always()