Fixes #948 This PR does the following: 1. Changes the trigger for the PR comment updater from the cron method to workflow_run, triggered on completion of the test cases. This should remove the delay between the completion of the performance tests and the updating of the corresponding comment in the PR. 2. Separates the integrity check and performance check into separate workflows and allows them to run in parallel. This will allow the project to take advantage of multiple CI runners if they're available (which appears to be the case). In addition, this fixes an issue with post-merge undeleted/updated branches on PRs. The current "cron" method causes the CI to run the pr-update job over and over forever, unnecessarily. As described in github/docs#799, and the [github docs](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_run), a `workflow_run` trigger will only fire when the workflow file is on the main branch. Thus, this change will not fire the PR updater on this PR. Thus there's no way to test this working properly without merging onto master and then testing on one of the other PRs.
39 lines
822 B
YAML
39 lines
822 B
YAML
# Workflow to run basic integrity checks on OMT`s new Pull Requests and commits pushed into OMT repo
|
|
|
|
name: OpenMapTiles Integrity CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, master-tools ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
integrity_test:
|
|
name: Run integrity test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout the changes
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run quickstart for a small area
|
|
env:
|
|
area: monaco
|
|
MIN_ZOOM: 0
|
|
MAX_ZOOM: 14
|
|
QUIET: 1
|
|
run: |
|
|
./quickstart.sh $area
|
|
|
|
- name: Save quickstart.log
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: quickstart.log
|
|
path: quickstart.log
|
|
|
|
- name: Test etldoc images
|
|
run: |
|
|
export TEST_MODE=yes
|
|
make generate-devdoc
|