-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.53 KB
/
Copy pathvalidate.yml
File metadata and controls
56 lines (49 loc) · 1.53 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
52
53
54
55
56
# Reusable workflow: validates an organizer repo's events/*.json and
# ote.config.json. Intended as the PR check of ote-template forks:
#
# jobs:
# validate:
# uses: OpenTechEvents/ote-tools/.github/workflows/validate.yml@v1
#
# See the repository README for the full consumer documentation.
name: Validate OTE data
on:
workflow_call:
inputs:
tools-ref:
description: >-
Git ref of ote-tools to run the validators from. Defaults to the
exact commit of this workflow file, so tools and workflow never
drift apart.
type: string
required: false
default: ""
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout caller repository
uses: actions/checkout@v7
- name: Checkout ote-tools
uses: actions/checkout@v7
with:
repository: OpenTechEvents/ote-tools
ref: ${{ inputs.tools-ref || github.job_workflow_sha }}
path: .ote-tools
- uses: pnpm/action-setup@v6
with:
package_json_file: .ote-tools/package.json
- uses: actions/setup-node@v7
with:
node-version: 22
cache: pnpm
cache-dependency-path: .ote-tools/pnpm-lock.yaml
- name: Build ote-tools
working-directory: .ote-tools
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Validate events/ and ote.config.json
run: node .ote-tools/packages/build-feed/dist/bin.js . --check