-
-
Notifications
You must be signed in to change notification settings - Fork 283
51 lines (43 loc) · 1.48 KB
/
generate-test-ids.yml
File metadata and controls
51 lines (43 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Test IDs
on: [pull_request]
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }} # Check out the PR branch, not the merge commit
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm ci
# - name: Generate test IDs for v1
# run: node scripts/generate-ids-for.js v1
#
# - name: Generate test IDs for draft2020-12
# run: node scripts/generate-ids-for.js draft2020-12
#
# - name: Generate test IDs for draft2019-09
# run: node scripts/generate-ids-for.js draft2019-09
#
# - name: Generate test IDs for draft7
# run: node scripts/generate-ids-for.js draft7
#
# - name: Generate test IDs for draft6
# run: node scripts/generate-ids-for.js draft6
#
# - name: Generate test IDs for draft4
# run: node scripts/generate-ids-for.js draft4
- name: Commit and push changes
run: |
git config user.name "test-id-action"
git config user.email "test-id-action@users.noreply.github.com"
git add "tests/**/*.json"
git commit -m "Update test IDs based on the schema, test data, and expected result." || echo "No changes to commit"
git push