chore(data): coordinate edit for 9379.02.236 (#3008)
#2109
This file contains hidden or 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: Martin CI/CD | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-data | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| types: [ opened, reopened, synchronize ] | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| validate-planetiler-custommap: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Setup | Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: | | |
| map | |
| - name: Setup | Install Java | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| - name: Setup | Install dependencies | |
| run: wget https://github.com/onthegomap/planetiler/releases/latest/download/planetiler.jar | |
| working-directory: map/planetiler | |
| - name: Validate custom map | |
| run: java -Xmx1g -jar planetiler.jar verify shortbread_custom.yml | |
| working-directory: map/planetiler | |
| validate-style: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Setup | Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: | | |
| map | |
| - name: Setup | Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| - name: Setup | Install dependencies | |
| run: npm ci | |
| working-directory: map/martin | |
| - name: Run style validation | |
| run: node --experimental-strip-types validate-style.ts styles/navigatum-basemap.json | |
| working-directory: map/martin | |
| build: | |
| uses: ./.github/workflows/_docker-build.yml | |
| with: | |
| image_suffix: martin | |
| context: ./map/martin | |
| dockerfile: Dockerfile | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: write | |
| attestations: write | |
| # This final step is needed to mark the whole workflow as successful | |
| # Don't change its name - it is used by the merge protection rules | |
| done: | |
| name: Finished martin CI | |
| runs-on: ubuntu-latest | |
| needs: [ build, validate-style, validate-planetiler-custommap ] | |
| if: always() | |
| permissions: {} | |
| steps: | |
| - name: Result of the needed steps | |
| run: echo "${{ toJSON(needs) }}" # zizmor: ignore[template-injection] | |
| - if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }} | |
| name: CI Result | |
| run: exit 1 |