Skip to content

Commit

Permalink
chore(ci): enable tests on ubuntu 24.04 (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
odockal authored Nov 1, 2024
1 parent 45cc89a commit 31b2032
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: 🔧 Install - Test Project
run: npm install --workspace=extester-test

- name: ⚙️ Allow unprivileged user namespace (ubuntu)
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: 📊 Run Tests with Coverage enabled
# 'set +e' and 'exit 0' - that means the workflow will not fail even the test failures are present. The failing tests are not directive for the code coverage reports itself
run: |
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/template-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-24.04, macos-latest, windows-latest]
fail-fast: false

env:
Expand Down Expand Up @@ -52,11 +52,15 @@ jobs:
run: npm install --workspace=extester-test

- name: 🔍 Run Tests (macOS, windows)
if: matrix.os != 'ubuntu-latest'
if: ${{ ! startsWith(matrix.os, 'ubuntu') }}
run: npm test

- name: ⚙️ Allow unprivileged user namespace (ubuntu)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: 🔍 Run Tests (linux)
if: matrix.os == 'ubuntu-latest'
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm test

- name: 💾 Upload Screenshots
Expand Down

0 comments on commit 31b2032

Please sign in to comment.