Skip to content

Commit 2228327

Browse files
committed
Update github workflow
1 parent bf2d2a7 commit 2228327

2 files changed

Lines changed: 40 additions & 30 deletions

File tree

.github/workflows/monaco.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/render.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Derived from planetiler (Apache License)
2+
# https://github.com/onthegomap/planetiler/blob/main/.github/workflows/maven.yml
3+
4+
name: Render Tests CI
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
render_tests:
14+
name: Render tests
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 15
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: 21
23+
distribution: 'temurin'
24+
cache: 'maven'
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version-file: 'render-tests/.nvmrc'
28+
- name: Generate PMTiles
29+
working-directory: render-tests
30+
run: ./generate_pmtiles.sh
31+
- name: Build styles
32+
run: npm ci && npm run build
33+
working-directory: styles
34+
- name: Build render tests
35+
run: npm ci && npm run build
36+
working-directory: render-tests
37+
- name: Run render tests
38+
run: npm run test
39+
working-directory: render-tests
40+

0 commit comments

Comments
 (0)