Skip to content

Commit 3a150c4

Browse files
committed
Reorganise workflows
1 parent 4e5d624 commit 3a150c4

File tree

3 files changed

+31
-34
lines changed

3 files changed

+31
-34
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
# Run "pre-commit run --all-files"
1010
pre-commit:
11+
name: Run pre-commit checks
1112
runs-on: ubuntu-latest
1213
timeout-minutes: 5
1314

@@ -20,6 +21,7 @@ jobs:
2021
pre-commit run --all-files --hook-stage manual || (git diff; false)
2122
2223
mkdocs:
24+
name: Check docs
2325
runs-on: ubuntu-latest
2426
timeout-minutes: 5
2527

.github/workflows/unified-test-format-schema-check.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/json-regenerate-check.yml renamed to .github/workflows/unified-tests.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
1-
name: Check if all JSON test files are up-to-date
1+
name: Unified Tests
22

33
on:
44
push:
55
branches: [master]
66
pull_request: ~
77

88
jobs:
9-
build:
9+
schema-check:
10+
name: Check unified test format files against schema
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.x
20+
- name: Set up npm
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: lts/*
24+
- name: Install dependencies
25+
run: |
26+
npm install -g ajv-cli js-yaml
27+
- name: Check unified format test files against schema
28+
working-directory: source/unified-test-format/tests
29+
run: make
30+
- name: Check all unified tests schema version is valid
31+
run: bash .github/workflows/check_schema_version.sh
32+
- name: Check schema-latest.json has been updated
33+
run: bash .github/workflows/check-schema-latest.sh
34+
35+
json-check:
36+
name: Check if all JSON test files are up-to-date
1037

1138
runs-on: ubuntu-latest
1239

0 commit comments

Comments
 (0)