Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/squad-standard-lint-markdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint-markdown

Check warning on line 1 in .github/workflows/squad-standard-lint-markdown.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

1:1 [document-start] missing document start "---"

on:

Check warning on line 3 in .github/workflows/squad-standard-lint-markdown.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

3:1 [truthy] truthy value should be one of [false, true]
pull_request:
Expand All @@ -10,14 +10,21 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Run markdownlint
run: |
files=$(git ls-files '*.md')
if [ "${{ github.event_name }}" = "pull_request" ]; then
git fetch --no-tags origin "${{ github.base_ref }}:${{ github.base_ref }}"

Check failure on line 21 in .github/workflows/squad-standard-lint-markdown.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

21:81 [line-length] line too long (86 > 80 characters)
files=$(git diff --name-only "${{ github.base_ref }}...HEAD" -- '*.md')

Check failure on line 22 in .github/workflows/squad-standard-lint-markdown.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

22:81 [line-length] line too long (83 > 80 characters)
else
files=$(git ls-files '*.md')
fi
if [ -z "$files" ]; then
echo "No markdown files found."
echo "No markdown files to lint."
exit 0
fi
npx --yes markdownlint-cli $files
11 changes: 9 additions & 2 deletions .github/workflows/squad-standard-lint-yaml.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint-yaml

Check warning on line 1 in .github/workflows/squad-standard-lint-yaml.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

1:1 [document-start] missing document start "---"

on:

Check warning on line 3 in .github/workflows/squad-standard-lint-yaml.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

3:1 [truthy] truthy value should be one of [false, true]
pull_request:
Expand All @@ -10,15 +10,22 @@
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Run yamllint
run: |
python -m pip install --quiet yamllint
files=$(git ls-files '*.yml' '*.yaml')
if [ "${{ github.event_name }}" = "pull_request" ]; then
git fetch --no-tags origin "${{ github.base_ref }}:${{ github.base_ref }}"

Check failure on line 22 in .github/workflows/squad-standard-lint-yaml.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

22:81 [line-length] line too long (86 > 80 characters)
files=$(git diff --name-only "${{ github.base_ref }}...HEAD" -- '*.yml' '*.yaml')

Check failure on line 23 in .github/workflows/squad-standard-lint-yaml.yml

View workflow job for this annotation

GitHub Actions / lint-yaml

23:81 [line-length] line too long (93 > 80 characters)
else
files=$(git ls-files '*.yml' '*.yaml')
fi
if [ -z "$files" ]; then
echo "No YAML files found."
echo "No YAML files to lint."
exit 0
fi
yamllint -s $files
Loading
Loading