Skip to content

Commit 014278b

Browse files
authored
Merge pull request #140 from fee1-dead/patch-1
dev-desktop: add nodejs package for running rustdoc-gui tests
2 parents f125661 + 3c2b2a7 commit 014278b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ansible/roles/dev-desktop/tasks/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,23 @@
186186
- gcc-multilib # for 32 bit cross compiles of libstd and tests
187187
state: present
188188

189+
- name: Check if Node is installed
190+
command: node --version
191+
register: node_version
192+
changed_when: false
193+
failed_when: node_version.rc != 0 and node_version.rc != 2
194+
195+
- name: Set up NodeSource repository
196+
shell: |
197+
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
198+
when: node_version.rc == 2
199+
200+
- name: Install Node
201+
apt:
202+
name: nodejs
203+
state: present
204+
update_cache: yes
205+
189206
- name: Set up the git credential helper user
190207
user:
191208
name: github-app-credentials

0 commit comments

Comments
 (0)