Skip to content

Commit e65edb3

Browse files
committed
GitHub: setup action
1 parent 7484128 commit e65edb3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/json_generation.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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: Setup dependencies
12+
run: |
13+
apt-get update && \
14+
apt-get install --no-install-recommends -y \
15+
python3 \
16+
python3-venv \
17+
python3-pip \
18+
make \
19+
&& \
20+
apt-get clean
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Install python requirements
24+
run: |
25+
python3 -m venv venv
26+
. venv/bin/activate
27+
pip3 install -r requirements.txt
28+
- name: Validate YAMLs
29+
run: |
30+
. venv/bin/activate
31+
make -j$(nproc) validate
32+
- name: Generate JSONs
33+
run: |
34+
. venv/bin/activate
35+
make O=./build -j$(nproc)

0 commit comments

Comments
 (0)