forked from electricitymaps/electricitymaps-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 964 Bytes
/
validate_generate_files.yml
File metadata and controls
35 lines (34 loc) · 964 Bytes
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
on:
workflow_call:
jobs:
generate_files:
name: Generate files
runs-on: ubuntu-latest
timeout-minutes: 2
defaults:
run:
working-directory: web
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node v18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Restore node_modules for web
id: cache-web
uses: actions/cache@v3
with:
path: ./web/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('./web/pnpm-lock.yaml') }}
- name: Install web dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Generate zone config
run: pnpm run generate-zones-config
- name: Generate world file
run: pnpm run generate-world