Refactor to use OpenMapTiles schema #222
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
actionlint: | |
name: Lint GitHub Actions workflows | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check workflow files | |
run: | | |
echo "::add-matcher::.github/actionlint-matcher.json" | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
./actionlint -color | |
shell: bash | |
maplibre-style-validate: | |
name: Validate MapLibre style specifications | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install maplibre-gl-style-spec | |
run: npm install @maplibre/maplibre-gl-style-spec --global | |
- name: Validate MapLibre GL styles | |
working-directory: vector/styles/geoportal | |
run: | | |
for file in *.json; do [[ -f "$file" ]] && echo "Validating file: $file" && gl-style-validate "$file"; done | |
test-vector-basemap: | |
name: Run vector basemap tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Run tests | |
run: ./gradlew test -i | |
generate-vector-basemap-pmtiles: | |
name: Generate vector basemap PMTiles | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
if: github.event_name != 'push' | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Generate vector basemap PMTiles | |
uses: ./.github/actions/basemap-vector-generate-pmtiles | |
with: | |
artifact-retention-days: ${{ github.ref == 'refs/heads/main' && 30 || 7 }} |