mapcomplete/.github/workflows/theme_validation.yml

33 lines
771 B
YAML
Raw Permalink Normal View History

2021-04-10 15:01:28 +02:00
name: Theme Validation
on:
push:
branches:
- develop
- master
2021-04-10 15:13:38 +02:00
2021-04-10 15:01:28 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-04-10 15:07:45 +02:00
- name: Set up Node.js
uses: actions/setup-node@v1.2.0
2021-04-10 15:19:43 +02:00
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
2021-04-10 15:07:45 +02:00
- name: install deps
run: npm install
2021-04-10 15:24:50 +02:00
- name: create generated dir
2021-04-10 15:21:19 +02:00
run: mkdir ./assets/generated
2021-04-10 15:24:50 +02:00
- name: create stub themes
2021-04-10 15:36:04 +02:00
run: "echo '{\"layers\": [], \"themes\": []}' > ./assets/generated/known_layers_and_themes.json"
2021-04-10 15:24:50 +02:00
2021-04-10 15:01:28 +02:00
- name: Compile license info
2021-04-10 16:20:40 +02:00
run: npm run validate:licenses
2021-04-10 15:01:28 +02:00
2021-04-10 16:06:01 +02:00
- name: Compile themes and layers
2021-04-10 16:20:40 +02:00
run: npm run validate:layeroverview