mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 06:50:12 +01:00
wip
This commit is contained in:
parent
07a441319a
commit
c1daa8c583
2 changed files with 4 additions and 8 deletions
11
.github/workflows/update-test-repos.yml
vendored
11
.github/workflows/update-test-repos.yml
vendored
|
|
@ -12,6 +12,7 @@ jobs:
|
||||||
update:
|
update:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -26,17 +27,13 @@ jobs:
|
||||||
- run: npm install
|
- run: npm install
|
||||||
# REMOVE NEXT LINE
|
# REMOVE NEXT LINE
|
||||||
- run: node scripts/index.mjs delete test/markdownlint-test-repos-dotnet-docs.mjs test/markdownlint-test-repos-mdn-content.mjs
|
- run: node scripts/index.mjs delete test/markdownlint-test-repos-dotnet-docs.mjs test/markdownlint-test-repos-mdn-content.mjs
|
||||||
- run: npm run clone-test-repos
|
|
||||||
- run: npm run update-test-repos
|
- run: npm run update-test-repos
|
||||||
continue-on-error: true
|
|
||||||
env:
|
env:
|
||||||
AVA_FORCE_CI: not-ci
|
AVA_FORCE_CI: not-ci
|
||||||
- run: exit 0
|
|
||||||
if: ${{ success() }}
|
|
||||||
- run: git add .
|
- run: git add .
|
||||||
- run: git commit -m "Update test repo snapshots."
|
- run: git commit -m "Update test repo snapshots."
|
||||||
- run: git push --set-upstream origin update-test-repos-$GITHUB_RUN_ID
|
- run: git push --set-upstream origin update-test-repos-$GITHUB_RUN_ID
|
||||||
# BLOCKED: https://github.com/cli/cli/issues/10093
|
# BLOCKED: https://github.com/cli/cli/issues/10093
|
||||||
# - run: gh pr create --base next --body "" --title "Update test repo snapshots." --draft
|
- run: gh pr create --base next --body "" --title "Update test repo snapshots." --draft
|
||||||
# env:
|
env:
|
||||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ export function lintTestRepo(t, globPatterns, configPath, parallel) {
|
||||||
config
|
config
|
||||||
}).then((results) => {
|
}).then((results) => {
|
||||||
const resultsString = results.toString();
|
const resultsString = results.toString();
|
||||||
console.log(`${t.title}:\n${resultsString}`);
|
|
||||||
t.snapshot(
|
t.snapshot(
|
||||||
resultsString,
|
resultsString,
|
||||||
"Expected linting violations"
|
"Expected linting violations"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue