4 Commits

Author SHA1 Message Date
Mohammed Naser
6920617af5 ensure-yarn: run ensure-nodejs before
YARN needs a modern version of NodeJS and if we don't use the role
to get the latest version, we end up failing on most platforms that
ship an old version of it.

This patch also adds testing to validate that ensure-yarn alone works.

Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: I83ac09bc5751c85c6f1eac550d289a300ca2255e
2020-05-01 17:07:48 +02:00
Mohammed Naser
f2976b1274 install-yarn: always install
The role previously conditionally installed YARN only if there was
a yarn.lock.  The role shouldn't conditionally decide to install
if there is a yarn.lock file as that's not expected behaviour.

Change-Id: Ia6940df036fd27d55d60fa959b794de952040745
2020-05-01 15:49:30 +02:00
Mohammed Naser
7cb1c6b16b ensure-yarn: refactor to use ensure-package-repositories
This patch refactors ensure-yarn to use the new generic role
to allow it to be cross-platform in the future.

Change-Id: I32bb40f5afb26d0d906f332c1c8440859367d97a
2020-05-01 15:49:30 +02:00
vass
0b4ed70366 Rename install-yarn to ensure-yarn for consistency
The old role will be kept and include ensure-yarn for backwards-compatability.

Change-Id: I7631c7e588bc953d6e3b22759abe66a73ffca728
2020-04-04 15:41:29 -04:00