iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.1k stars 300 forks source link

workflow: separate build and test jobs #2166

Closed mgermerie closed 1 year ago

mgermerie commented 1 year ago

Before contributing

Read CONTRIBUTING.md and CODING.md to apply iTowns conventions on PRs, Git history and code.

Description

Change workflow so that unit build, unit tests and functional tests are separated. Add caching parameter for npm ci result.

Motivation and Context

This modification allows relaunching unit tests or functional tests independently if they somehow fail due to connection issue while fetching some data (which can happen often times). Unit tests and functional tests can also run in parallel, speeding up the process a bit (by the duration of unit tests).

I figured this solution out while working on CI for commits name checking, thought it would be a little improvement. Let me know what you think.

The pros are given in previous description, and the cons I identified are the following :