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
30 changes: 14 additions & 16 deletions .github/workflows/schema-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,28 @@ name: schema-tests
# testcases for the metaschemas
#

# run this on push to any branch and creation of pull-requests
on:
push: {}
# run this on pull-requests (creation and updates) and on manual trigger
on:
pull_request: {}
workflow_dispatch: {}

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5 # checkout repo content
with:
fetch-depth: 0
- uses: actions/checkout@v5 # checkout repo content
with:
fetch-depth: 0

- uses: actions/setup-node@v6 # setup Node.js
with:
node-version: '20.x'
- uses: actions/setup-node@v6 # setup Node.js
with:
node-version: "20.x"

- name: Install dependencies from main
run: |
# git checkout remotes/origin/main -- package.json package-lock.json #TODO: uncomment with subsequent PR
npm ci
- name: Install dependencies from main
run: |
# git checkout remotes/origin/main -- package.json package-lock.json #TODO: uncomment with subsequent PR
npm ci

- name: Run tests
run: npm test
- name: Run tests
run: npm test
33 changes: 17 additions & 16 deletions .github/workflows/validate-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,26 @@ name: validate-markdown
# This workflow validates markdown files in the versions directory matching *.md
#

# run this on push to any branch and creation of pull-requests
on: [push, pull_request]
# run this on pull-requests (creation and updates) and on manual trigger
on:
pull_request: {}
workflow_dispatch: {}

jobs:
mdv:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5 # checkout repo content
with:
fetch-depth: 0
# - name: use the javascript environment from main
# run: |
# git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
- uses: actions/setup-node@v6 # setup Node.js
with:
node-version: '20.x'
- name: Validate markdown
run: npx --yes mdv versions/*.md
- name: Lint markdown
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/*.md
- uses: actions/checkout@v5 # checkout repo content
with:
fetch-depth: 0
# - name: use the javascript environment from main
# run: |
# git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
- uses: actions/setup-node@v6 # setup Node.js
with:
node-version: "20.x"
- name: Validate markdown
run: npx --yes mdv versions/*.md
- name: Lint markdown
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/*.md