Skip to content

Block hyphenated directory names for tests. #22

Block hyphenated directory names for tests.

Block hyphenated directory names for tests. #22

Workflow file for this run

name: Pull Request
on: [pull_request]
jobs:
check_style:
name: Check style against CONTRIBUTING.md
runs-on: ubuntu-latest
steps:
- name: Setup Perl
uses: perl-actions/install-with-cpanm@v1
with:
install: |
Net::IP
- name: Checkout code
uses: actions/checkout@v3
- name: IP Addresses Assignment
run: |
find . -name \*.go -exec ./tools/check_ip_addresses.pl \{} +
- name: Allowed File Types
run: ./tools/allowed_file_types.sh
- name: Block hyphenated directory names
run: |
if ! find ./feature -type d -name '*-*' -print -exec false {} +; then

Check failure on line 22 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
echo "Hyphenated directories are not allowed. Please use a different separator like underscore."
exit 1
fi
- name: Enum
run: |
fail=0
if find . -name \*.go -exec egrep -n '\.Union.*?\([0-9]+\)' \{} +
then
echo "Please do not use numerical constants in a union." >&2
echo "See CONTRIBUTING.md#enum" >&2
fail=1
fi
if find . -name \*.go -exec egrep -n '_Union\([0-9]+\)' \{} +
then
echo "Please do not use numerical constants in a union." >&2
echo "See CONTRIBUTING.md#enum" >&2
fail=1
fi
exit "${fail}"
- name: Default NetworkInstance
run: |
if find . -name \*.go -exec egrep -n '"default"' \{} +
then
echo "Default network instance name should be uppercase." >&2
echo "See CONTRIBUTING.md#default-network-instance" >&2
exit 1
fi
otg_changes:
name: OTG Changes Required
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check if OTG changes required
uses: actions/github-script@v6
with:
script: |
const script = require('./.github/workflows/required_otg_changes_check.js')
await script({github, context, core})