-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1583 from update-apg-1.2
Update apg-1.2 with latest from master branch
- Loading branch information
Showing
194 changed files
with
28,659 additions
and
20,547 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "10:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "10:00" | ||
open-pull-requests-limit: 10 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Regression Tests Coverage Report | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- "examples/**" | ||
- "test/**" | ||
- "!examples/landmarks/**" | ||
|
||
jobs: | ||
report: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: refs/pull/${{ github.event.pull_request.number }}/head | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run coverage report | ||
run: | | ||
node test/util/report.js >> coverage.log || true | ||
- name: Comment on PR | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
const fs = require('fs'); | ||
const commentBody = fs.readFileSync('coverage.log', 'utf8'); | ||
if (commentBody.length === 0) { | ||
return | ||
} | ||
// Get the existing comments. | ||
const {data: comments} = await github.issues.listComments({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.number, | ||
}) | ||
// Find any comment already made by the bot. | ||
const botComment = comments.find(comment => comment.user.id === 41898282) | ||
if (botComment) { | ||
await github.issues.updateComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: botComment.id, | ||
body: commentBody | ||
}) | ||
} else { | ||
await github.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.number, | ||
body: commentBody | ||
}) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "cspell", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.*):(\\d+):(\\d+)\\s+\\-\\s+(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: CSS Linting | ||
on: | ||
push: | ||
branches-ignore: | ||
- "dependabot/**" | ||
paths: | ||
- "package*.json" | ||
- ".prettier*" | ||
- ".stylelint*" | ||
- "**/*.css" | ||
- ".github/workflows/lint-css.yml" | ||
- "!common/**" | ||
|
||
pull_request: | ||
paths: | ||
- "package*.json" | ||
- ".prettier*" | ||
- ".stylelint*" | ||
- "**/*.css" | ||
- ".github/workflows/lint-css.yml" | ||
- "!common/**" | ||
|
||
jobs: | ||
lint-css: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
|
||
- uses: xt0rted/stylelint-problem-matcher@v1 | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Stylelint | ||
run: npm run lint:css |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: HTML Linting | ||
on: | ||
push: | ||
branches-ignore: | ||
- "dependabot/**" | ||
paths: | ||
- "package*.json" | ||
- ".vnurc" | ||
- "aria-practices.html" | ||
- "examples/**/*.html" | ||
- ".github/workflows/lint-html.yml" | ||
- ".github/workflows/vnu-jar-problem-matcher.json" | ||
|
||
pull_request: | ||
paths: | ||
- "package*.json" | ||
- ".vnurc" | ||
- "aria-practices.html" | ||
- "examples/**/*.html" | ||
- ".github/workflows/lint-html.yml" | ||
- ".github/workflows/vnu-jar-problem-matcher.json" | ||
|
||
jobs: | ||
lint-html: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: HTML Validator | ||
run: | | ||
echo "::add-matcher::.github/workflows/vnu-jar-problem-matcher.json" | ||
npm run lint:html |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: JavaScript Linting | ||
on: | ||
push: | ||
branches-ignore: | ||
- "dependabot/**" | ||
paths: | ||
- "package*.json" | ||
- ".prettier*" | ||
- ".eslint*" | ||
- "**/*.js" | ||
- ".github/workflows/lint-js.yml" | ||
- "!common/**" | ||
|
||
pull_request: | ||
paths: | ||
- "package*.json" | ||
- ".prettier*" | ||
- ".eslint*" | ||
- "**/*.js" | ||
- ".github/workflows/lint-js.yml" | ||
- "!common/**" | ||
|
||
jobs: | ||
lint-js: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
# setup-node task is used without a particular version in order to load | ||
# the ESLint problem matchers | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: ESLint | ||
run: npm run lint:es |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Run regression tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/regression.yml" | ||
- "package*.json" | ||
- "test/**" | ||
- "examples/**" | ||
- "!examples/landmarks/**" | ||
- "!examples/coding-template/**" | ||
push: | ||
branches-ignore: | ||
- master | ||
- "dependabot/**" | ||
paths: | ||
- ".github/workflows/regression.yml" | ||
- "package*.json" | ||
- "test/**" | ||
- "examples/**" | ||
- "!examples/landmarks/**" | ||
- "!examples/coding-template/**" | ||
|
||
jobs: | ||
regression: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
CI_NODE_INDEX: [0, 1, 2, 3, 4] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Run Ava on changed files in PR | ||
run: ./scripts/regression-tests.sh | ||
if: github.event_name == 'pull_request' | ||
env: | ||
COMMIT_RANGE: "origin/${{ github.base_ref }}...${{ github.sha }}" | ||
CI_NODE_TOTAL: 5 | ||
CI_NODE_INDEX: ${{ matrix.CI_NODE_INDEX }} | ||
TEST_WAIT_TIME: 10000 | ||
|
||
- name: Run Ava for changed files from origin branch | ||
run: ./scripts/regression-tests.sh | ||
if: github.event_name == 'push' | ||
env: | ||
COMMIT_RANGE: "origin/master...${{ github.ref }}" | ||
CI_NODE_TOTAL: 5 | ||
CI_NODE_INDEX: ${{ matrix.CI_NODE_INDEX }} | ||
TEST_WAIT_TIME: 10000 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Spellcheck | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "dependabot/**" | ||
paths: | ||
- "package*.json" | ||
- "cspell.json" | ||
- "aria-practices.html" | ||
- "examples/**/*.html" | ||
- ".github/workflows/cspell-problem-matcher.json" | ||
- ".github/workflows/spelling.yml" | ||
|
||
pull_request: | ||
paths: | ||
- "package*.json" | ||
- "cspell.json" | ||
- "aria-practices.html" | ||
- "examples/**/*.html" | ||
- ".github/workflows/cspell-problem-matcher.json" | ||
- ".github/workflows/spelling.yml" | ||
|
||
jobs: | ||
spelling: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: cSpell | ||
run: | | ||
echo "::add-matcher::.github/workflows/cspell-problem-matcher.json" | ||
npm run lint:spelling |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "vnu-jar", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\"file:(.*)\":(\\d+).(\\d+)-\\d+\\.\\d+:\\s(error|warning):\\s(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"message": 5 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore external copied w3c files | ||
common |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-prettier/recommended"], | ||
"rules": { | ||
"media-feature-name-no-unknown": [true, | ||
"ignoreMediaFeatureNames": ["forced-colors"] ] | ||
"media-feature-name-no-unknown": [ | ||
true, | ||
{ | ||
"ignoreMediaFeatureNames": [ | ||
"forced-colors" | ||
] | ||
} | ||
], | ||
"no-descending-specificity": null, | ||
"prettier/prettier": [true, {"singleQuote": false}] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.