Support .NET 10 #190
This file contains hidden or 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
name: lint | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
permissions: {} | |
env: | |
FORCE_COLOR: 3 | |
TERM: xterm | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
filter: 'tree:0' | |
persist-credentials: false | |
show-progress: false | |
- name: Add actionlint problem matcher | |
run: echo "::add-matcher::.github/actionlint-matcher.json" | |
- name: Lint workflows | |
uses: docker://rhysd/actionlint:1.7.8@sha256:96d4a8c87dbbfb3bdd324f8fdc285fc3df5261e2decc619a4dd7e8ee52bbfd46 | |
with: | |
args: -color | |
- name: Lint markdown | |
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # v20.0.0 | |
with: | |
config: '.markdownlint.yaml' | |
globs: | | |
**/*.md | |
- name: Install markdown-link-check | |
env: | |
# renovate: datasource=npm depName=markdown-link-check packageName=markdown-link-check | |
MARKDOWN_LINK_CHECK_VERSION: 3.14.1 | |
run: sudo npm install -g "markdown-link-check@${MARKDOWN_LINK_CHECK_VERSION}" | |
- name: Check markdown links | |
run: "find . -name '*.md' -print0 | xargs -0 -n1 markdown-link-check --config .markdown_link_check_config.json" |