mapcomplete/.github/workflows/theme_validation.yml

33 lines
771 B
YAML
Raw Normal View History

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