-
Notifications
You must be signed in to change notification settings - Fork 40
36 lines (32 loc) · 1.01 KB
/
validate.yml
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
name: Chaindata Validate
on:
push:
branches: [v3, main]
pull_request:
types: [opened, synchronize]
branches: [v3, main]
concurrency:
# only run 1 job per branch/pr/etc at a time
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
validate:
name: 'Validate chaindata JSON format & schema'
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate JSON format & schema
# prettier will exit with a non-zero status code if the JSON format is not valid
# ajv will exit with a non-zero status code if the JSON schema is not valid
run: pnpm validate