Run render tests in CI (#357)

* Add render test workflow

* Sudo

* Add debug output

* Remove path

* Use xvfb

* Remove unneeded code

* Upload render query test artifact

* Always upload artifact

* Add failing tests to ignores file

* Rename workflow

* Fix file extension

* Change xvfb options

* Ignore x display errors

* Run render tests on macOS

* Upload render test artifacts

* Run linux render tests

* Revert runner changes

* Remove linux render test

* Remove ignores

* Add macos ignore

* Add documentation

* Update DEVELOPING.md

Co-authored-by: Tadej Novak <tadej@tano.si>
This commit is contained in:
Oliver Wipfli
2022-08-13 12:42:10 +02:00
committed by GitHub
parent a261c59b23
commit c2d91477b1
5 changed files with 72 additions and 2 deletions

View File

@@ -163,6 +163,17 @@ jobs:
run: |
cmake --build build -j $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)
- name: Run render tests on macOS
if: runner.os == 'macOS'
run: ./build/mbgl-render-test-runner --manifestPath metrics/macos-xcode11-release-style.json
- name: Upload render test artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: render-query-test-results
path: metrics/macos-xcode11-release-style.html
- name: Test
if: runner.os == 'Linux'
run: xvfb-run --auto-servernum npm test