Skip to content

Commit 106f955

Browse files
committed
GitHub: setup action
1 parent 7484128 commit 106f955

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/json_generation.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Frontend JSON Generation
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
generation:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: debian:stable-slim
10+
steps:
11+
- name: Python setup
12+
run: |
13+
apt update && apt install -y python3 python3-venv python3-pip && apt clean
14+
python3 -m venv venv
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Install requirements
18+
run: |
19+
. venv/bin/activate
20+
pip3 install -r requirements.txt
21+
- name: Validate YAMLs
22+
run: |
23+
. venv/bin/activate
24+
make -j$(nproc) validate
25+
- name: Generate JSONs
26+
run: |
27+
. venv/bin/activate
28+
make O=./build -j$(nproc)

0 commit comments

Comments
 (0)