Skip to content

[release-branch.go1.26] eng: skip PR validation for docs-only changes #3504

[release-branch.go1.26] eng: skip PR validation for docs-only changes

[release-branch.go1.26] eng: skip PR validation for docs-only changes #3504

Workflow file for this run

# Copyright (c) Microsoft Corporation.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# This job tests that the patches apply cleanly, and nothing else. The goal is to test this as
# quickly as possible. This job is a good signal for devs: GitHub Actions is quick to get an agent,
# so when this job fails, it's easy to see, and clear to the dev that the rest of the PR's jobs
# aren't going to succeed and can be ignored.
#
# Ideally, failure of this job would block the tests from running, because it would be a waste of
# time to hit the patch failure N times. However, the actual tests run in AzDO, so we can't
# reasonably cancel them from here (GitHub Actions).
# The "0:" prefix makes this workflow's checks sort above the alphabetical AzDO stage names on the
# PR checks list, so patch failures are immediately visible without scrolling.
name: "0: Test"
on:
pull_request:
branches: [ microsoft/* ]
# Cancel existing runs if user makes another push.
concurrency:
group: "${{ github.ref }}-${{ github.workflow}}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check_patches:
name: Patches Apply Cleanly
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- run: pwsh eng/run.ps1 submodule-refresh -shallow
eng_util:
name: eng/_util
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: eng/_util/go.mod
cache-dependency-path: eng/_util/go.sum
- name: Test eng/_util
working-directory: eng/_util
run: go test ./...