From d904098ba582736313335475565e48fc465387ee Mon Sep 17 00:00:00 2001 From: Daniel Banck Date: Mon, 9 Dec 2024 15:01:54 +0100 Subject: [PATCH] Fix tests on ubuntu (#1907) --- .changes/unreleased/INTERNAL-20241209-123718.yaml | 6 ++++++ .github/workflows/test.yml | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 .changes/unreleased/INTERNAL-20241209-123718.yaml diff --git a/.changes/unreleased/INTERNAL-20241209-123718.yaml b/.changes/unreleased/INTERNAL-20241209-123718.yaml new file mode 100644 index 000000000..baea170d7 --- /dev/null +++ b/.changes/unreleased/INTERNAL-20241209-123718.yaml @@ -0,0 +1,6 @@ +kind: INTERNAL +body: Adapt CI config for Ubuntu 24.04.1 +time: 2024-12-09T12:37:18.241839+01:00 +custom: + Issue: "1907" + Repository: vscode-terraform diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2801fdaae..4d4c919b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,6 +68,9 @@ jobs: run: terraform version - name: Clean Install Dependencies run: npm ci + - name: Allow unprivileged user namespace (ubuntu) + if: runner.os == 'Linux' + run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 - name: Run Tests run: xvfb-run -a npm test if: runner.os == 'Linux'