Skip to content

[ansible] Upgrade node.js to v18 #6220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ jobs:
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install -y vagrant

- name: free before clean cache
run: |
free

- name: Clean VirtualBox cache
run: |
# Related issues:
# https://bbs.archlinux.org/viewtopic.php?id=298056
# https://forums.virtualbox.org/viewtopic.php?t=112438
echo "3" | sudo tee /proc/sys/vm/drop_caches

- name: free after clean cache
run: |
free

- uses: DamianReeves/[email protected]
with:
path: "${{ github.workspace }}/requirements.txt"
Expand Down Expand Up @@ -172,6 +187,17 @@ jobs:
url=$( echo "$json" | jq -r ".versions[] | select(.version == \"${box_version}\") | .providers[] | select(.name == \"virtualbox\") | .url" )
wget -nv -O /tmp/vagrant.box $url

- name: Clean VirtualBox cache
run: |
# Related issues:
# https://bbs.archlinux.org/viewtopic.php?id=298056
# https://forums.virtualbox.org/viewtopic.php?t=112438
echo "3" | sudo tee /proc/sys/vm/drop_caches

- name: free before running tests
run: |
free

- name: Run Molecule tests.
run: molecule --debug -v --base-config ./molecule/config/windows.yml test -s ${{ matrix.scenario }} -p ${{ matrix.distro }}
env:
Expand Down
4 changes: 2 additions & 2 deletions deployments/ansible/molecule/config/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ driver:
platforms:
- name: "2016"
box: cdaf/WindowsServer
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2022.09.01}
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2023.03.13}
box_url: ${MOLECULE_VAGRANT_BOX_URL}
cpus: 2
memory: 4096
Expand All @@ -30,7 +30,7 @@ platforms:
- "winrm.retry_delay = 10"
- name: "2019"
box: gusztavvargadr/windows-server-2019-standard
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-1809.0.2312}
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-1809.0.2407}
box_url: ${MOLECULE_VAGRANT_BOX_URL}
cpus: 2
memory: 4096
Expand Down
4 changes: 2 additions & 2 deletions deployments/ansible/molecule/shared/install_nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

- name: "download and extract nodejs"
unarchive:
src: https://nodejs.org/download/release/v16.20.2/node-v16.20.2-linux-x64.tar.gz
src: https://nodejs.org/download/release/v18.20.8/node-v18.20.8-linux-x64.tar.gz
dest: /usr/local
remote_src: yes
register: result
Expand All @@ -31,7 +31,7 @@

- name: "create symlinks in /usr/bin"
file:
src: "/usr/local/node-v16.20.2-linux-x64/bin/{{ item }}"
src: "/usr/local/node-v18.20.8-linux-x64/bin/{{ item }}"
dest: "/usr/bin/{{ item }}"
state: link
mode: '755'
Expand Down
Loading