Skip to content

Commit 6fa8426

Browse files
authored
Merge pull request #2960 from asbjornu/feature/remark-lint-fix
Fix remark-lint
2 parents 7584b6a + 1cd5ee9 commit 6fa8426

File tree

5 files changed

+11452
-8
lines changed

5 files changed

+11452
-8
lines changed

.github/mergify.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pull_request_rules:
88
- name: Automatic merge on dependabot PR after success CI
99
conditions:
1010
- author~=^dependabot(|-preview)\[bot\]$
11+
- '#commits-behind=0' # Only merge up to date pull requests
1112
- check-success=DotNet Format
1213
- check-success=Release
1314
- check-success=Unit Test code (windows-latest, netcoreapp3.1)
@@ -18,8 +19,6 @@ pull_request_rules:
1819
- check-success=Unit Test code (windows-latest, net5.0)
1920
actions:
2021
merge:
21-
method: rebase
22-
strict: smart
2322
- name: Thank contributor
2423
conditions:
2524
- merged

.github/workflows/docs.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@ on:
44
workflow_dispatch:
55
push:
66
paths:
7-
- 'docs/**'
7+
- docs/**
8+
- package*.json
9+
- markdownlint.json
10+
- .remarkrc.yaml
11+
- mkdocs.yml
12+
- .github/workflows/docs.yml
813
pull_request:
914
paths:
10-
- 'docs/**'
15+
- docs/**
16+
- package*.json
17+
- markdownlint.json
18+
- .remarkrc.yaml
19+
- mkdocs.yml
20+
- .github/workflows/docs.yml
1121
env:
1222
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
1323

@@ -40,6 +50,18 @@ jobs:
4050
with:
4151
path: tools
4252
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
53+
-
54+
name: Get npm cache directory
55+
id: cache-node-dir
56+
run: echo "::set-output name=dir::$(npm config get cache)"
57+
-
58+
name: Cache Node Modules
59+
id: cache-node
60+
uses: actions/[email protected]
61+
with:
62+
path: ${{ steps.cache-node-dir.outputs.dir }}
63+
key: node-${{ runner.os }}-${{ hashFiles('./package-lock.json') }}
64+
restore-keys: node-${{ runner.os }}
4365
-
4466
name: Install .NET SDK 6.0.x
4567
uses: actions/setup-dotnet@v1
@@ -83,19 +105,26 @@ jobs:
83105
name: '[Build Documentation]'
84106
shell: pwsh
85107
run: dotnet run/docs.dll --target=BuildDocs
86-
87108
-
88109
name: '[HTMLProofer]'
89110
uses: chabad360/htmlproofer@master
90111
with:
91112
directory: ./artifacts/docs/preview
92113
arguments: --url-ignore /api/ --allow-hash-href --assume-extension --disable-external
114+
-
115+
name: Reviewdog Reporter
116+
uses: haya14busa/action-cond@v1
117+
id: reporter
118+
with:
119+
cond: ${{ github.event_name == 'pull_request' }}
120+
if_true: github-pr-review
121+
if_false: github-check
93122
-
94123
name: '[Remark Lint]'
95-
uses: reviewdog/action-remark-lint@v5.0
124+
uses: reviewdog/action-remark-lint@v5.2
96125
with:
97126
github_token: ${{ secrets.GITHUB_TOKEN }}
98-
reporter: github-pr-check
127+
reporter: ${{ steps.reporter.outputs.value }}
99128

100129
publish:
101130
name: Publish docs

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,7 @@ config.wyam.hash
127127
config.wyam.packages.xml
128128
/tests/integration/core/build
129129
/tests/integration/full/build
130-
docs/output
130+
docs/output
131+
132+
# NPM
133+
node_modules

0 commit comments

Comments
 (0)