Bump github.com/stretchr/testify from 1.8.0 to 1.10.0 in /receiver/googlecloudpubsubreceiver #17210
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
# This action requires that any PR targeting the main branch should add a | |
# yaml file to the ./unreleased/ directory. If a CHANGELOG entry is not required, | |
# or if performing maintance on the Changelog, add either \"[chore]\" to the title of | |
# the pull request or add the \"Skip Changelog\" label to disable this action. | |
name: changelog | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
branches: | |
- main | |
env: | |
# See: https://github.com/actions/cache/issues/810#issuecomment-1222550359 | |
# Cache downloads for this workflow consistently run in under 1 minute | |
SEGMENT_DOWNLOAD_TIMEOUT_MIN: 5 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]')}} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Cache Go | |
id: go-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/bin | |
~/go/pkg/mod | |
key: changelog-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Ensure no changes to the CHANGELOG | |
run: | | |
if [[ $(git diff --name-only $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} ./CHANGELOG.md) ]] | |
then | |
echo "The CHANGELOG should not be directly modified." | |
echo "Please add a .yaml file to the ./unreleased/ directory." | |
echo "See CONTRIBUTING.md for more details." | |
echo "Alternately, add either \"[chore]\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped." | |
false | |
else | |
echo "The CHANGELOG was not modified." | |
fi | |
- name: Ensure ./unreleased/*.yaml addition(s) | |
run: | | |
if [[ 1 -gt $(git diff --diff-filter=A --name-only $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} ./unreleased | grep -c \\.yaml) ]] | |
then | |
echo "No changelog entry was added to the ./unreleased/ directory." | |
echo "Please add a .yaml file to the ./unreleased/ directory." | |
echo "See CONTRIBUTING.md for more details." | |
echo "Alternately, add either \"[chore]\" to the title of the pull request or add the \"Skip Changelog\" label if this job should be skipped." | |
false | |
else | |
echo "A changelog entry was added to the ./unreleased/ directory." | |
fi | |
- name: Validate ./unreleased/*.yaml changes | |
run: | | |
make chlog-validate \ | |
|| { echo "New ./unreleased/*.yaml file failed validation."; exit 1; } | |
# In order to validate any links in the yaml file, render the config to markdown | |
- name: Render unreleased changelog entries | |
run: make chlog-preview > changelog_preview.md | |
- name: Install markdown-link-check | |
run: npm install -g markdown-link-check | |
- name: Run markdown-link-check | |
run: | | |
markdown-link-check \ | |
--verbose \ | |
--config .github/workflows/check_links_config.json \ | |
changelog_preview.md \ | |
|| { echo "Check that anchor links are lowercase"; exit 1; } |