Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/pnpm/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # test code for the pnpm module
8 # Copyright (c) 2023 Aritra Sen <[email protected]>
9 # Copyright (c) Ansible Project
10 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
11 # SPDX-License-Identifier: GPL-3.0-or-later
12
13 # -------------------------------------------------------------
14 # Setup steps
15
16 - name: Run tests on OSes
17 ansible.builtin.include_tasks: run.yml
18 vars:
19 ansible_system_os: "{{ ansible_facts.system | lower }}"
20 nodejs_version: "{{ item.node_version }}"
21 nodejs_path: "node-v{{ nodejs_version }}-{{ ansible_system_os }}-x{{ ansible_facts.userspace_bits }}"
22 pnpm_version: "{{ item.pnpm_version }}"
23 pnpm_path: "pnpm-{{ 'macos' if ansible_system_os == 'darwin' else 'linuxstatic' }}-x{{ ansible_facts.userspace_bits }}"
24 with_items:
25 - { node_version: 16.20.0, pnpm_version: 8.7.0 }
26 when:
27 - ansible_facts.distribution != 'Alpine'