Skip to content

Commit d72c54b

Browse files
authored
Merge branch 'main' into ci/auto-merge-dependabot
2 parents 0077630 + b492626 commit d72c54b

File tree

11 files changed

+226
-254
lines changed

11 files changed

+226
-254
lines changed

.github/workflows/agenda.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Create meeting template
33
on:
44
workflow_dispatch: {}
55
schedule:
6-
# every two weeks on tuesday at 10AM PST (with DST)
7-
- cron: '0 17 */14 * 2'
6+
# every week on tuesday at 10AM PST (with DST)
7+
- cron: '0 17 * * 2'
88

99
jobs:
1010
create-discussion:
@@ -13,18 +13,34 @@ jobs:
1313
runs-on: ubuntu-22.04
1414
steps:
1515
- uses: actions/checkout@v5
16+
- name: Check if it's an alternate week
17+
id: check-week
18+
run: |
19+
# Get ISO week number (1-53)
20+
WEEK_NUMBER=$(date +%V)
21+
# Check if week number is odd or even to run workflow and create agenda for next week's meeting
22+
if [ $((WEEK_NUMBER % 2)) -eq 0 ]; then
23+
echo "Should run this week (even week: $WEEK_NUMBER)"
24+
echo "should_run=true" >> $GITHUB_OUTPUT
25+
else
26+
echo "Skipping odd week: $WEEK_NUMBER"
27+
echo "should_run=false" >> $GITHUB_OUTPUT
28+
fi
1629
- name: Get agenda text from template
30+
if: steps.check-week.outputs.should_run == 'true'
1731
id: get-agenda
1832
run: |
1933
echo 'AGENDA<<EOF' >> $GITHUB_ENV
2034
cat .github/templates/agenda.md >> $GITHUB_ENV
2135
echo 'EOF' >> $GITHUB_ENV
2236
- name: Get Next Meeting Date
37+
if: steps.check-week.outputs.should_run == 'true'
2338
id: get-next-meeting-date
2439
run: |
2540
NEXT_MEETING_DATE=$(date -d "next Tuesday" +%Y-%m-%d)
2641
echo "NEXT_MEETING_DATE=$NEXT_MEETING_DATE" >> $GITHUB_ENV
2742
- name: Create discussion with agenda
43+
if: steps.check-week.outputs.should_run == 'true'
2844
id: create-repository-discussion
2945
uses: octokit/[email protected]
3046
env:

.github/workflows/respec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- uses: actions/setup-node@v6 # setup Node.js
4141
with:
42-
node-version: "20.x"
42+
node-version: "22.x"
4343

4444
- name: Install dependencies
4545
run: npm ci

.github/workflows/schema-publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
jobs:
1717
publish:
18+
if: github.repository == 'OAI/Overlay-Specification'
1819
runs-on: ubuntu-latest
1920

2021
steps:
@@ -33,7 +34,7 @@ jobs:
3334

3435
- uses: actions/setup-node@v6 # setup Node.js
3536
with:
36-
node-version: 20.x
37+
node-version: "22.x"
3738

3839
- name: Install dependencies
3940
run: npm ci

.github/workflows/schema-tests.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,28 @@ name: schema-tests
88
# testcases for the metaschemas
99
#
1010

11-
# run this on push to any branch and creation of pull-requests
12-
on:
13-
push: {}
11+
# run this on pull-requests (creation and updates) and on manual trigger
12+
on:
1413
pull_request: {}
1514
workflow_dispatch: {}
1615

1716
jobs:
1817
test:
19-
2018
runs-on: ubuntu-latest
2119

2220
steps:
23-
- uses: actions/checkout@v5 # checkout repo content
24-
with:
25-
fetch-depth: 0
21+
- uses: actions/checkout@v5 # checkout repo content
22+
with:
23+
fetch-depth: 0
2624

27-
- uses: actions/setup-node@v6 # setup Node.js
28-
with:
29-
node-version: '20.x'
25+
- uses: actions/setup-node@v6 # setup Node.js
26+
with:
27+
node-version: "22.x"
3028

31-
- name: Install dependencies from main
32-
run: |
33-
# git checkout remotes/origin/main -- package.json package-lock.json #TODO: uncomment with subsequent PR
34-
npm ci
29+
- name: Install dependencies
30+
run: npm ci
3531

36-
- name: Run tests
37-
run: npm test
32+
- name: Run tests
33+
run: npm test
34+
env:
35+
BASE: ${{ github.event.pull_request.base.ref }}

.github/workflows/validate-markdown.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,26 @@ name: validate-markdown
77
# This workflow validates markdown files in the versions directory matching *.md
88
#
99

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

1315
jobs:
1416
mdv:
15-
1617
runs-on: ubuntu-latest
1718

1819
steps:
19-
- uses: actions/checkout@v5 # checkout repo content
20-
with:
21-
fetch-depth: 0
22-
# - name: use the javascript environment from main
23-
# run: |
24-
# git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
25-
- uses: actions/setup-node@v6 # setup Node.js
26-
with:
27-
node-version: '20.x'
28-
- name: Validate markdown
29-
run: npx --yes mdv versions/*.md
30-
- name: Lint markdown
31-
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/*.md
20+
- uses: actions/checkout@v5 # checkout repo content
21+
with:
22+
fetch-depth: 0
23+
# - name: use the javascript environment from main
24+
# run: |
25+
# git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
26+
- uses: actions/setup-node@v6 # setup Node.js
27+
with:
28+
node-version: "22.x"
29+
- name: Validate markdown
30+
run: npx --yes mdv versions/*.md
31+
- name: Lint markdown
32+
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/*.md

package-lock.json

Lines changed: 136 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"yargs": "^18.0.0"
2222
},
2323
"devDependencies": {
24-
"@hyperjump/json-schema": "^1.9.9",
24+
"@hyperjump/json-schema-coverage": "^1.1.1",
2525
"c8": "^10.1.3",
2626
"markdownlint-cli": "^0.45.0",
2727
"mdv": "^1.3.4",
@@ -41,6 +41,6 @@
4141
"scripts": {
4242
"build": "bash ./scripts/md2html/build.sh",
4343
"format-markdown": "bash ./scripts/format-markdown.sh ./versions/*.md",
44-
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh"
44+
"test": "c8 --100 vitest run --coverage"
4545
}
4646
}

0 commit comments

Comments
 (0)