Skip to content

Commit

Permalink
fix(rakkas): disable apparmor restrictions on GitHub Actions for now (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Jan 10, 2025
1 parent f962520 commit 2e09019
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/rakkas.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import { runInRepo } from '../utils.ts'
import type { RunOptions } from '../types.d.ts'
import { execSync } from 'node:child_process'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'rakkasjs/rakkasjs',
branch: 'main',
build: 'build',
// This is needed to run puppeteer in Ubuntu 23+
// /~https://github.com/puppeteer/puppeteer/pull/13196
beforeTest: process.env.GITHUB_ACTIONS
? async () => {
execSync(
'echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns',
)
}
: undefined,
test: 'vite-ecosystem-ci',
})
}

0 comments on commit 2e09019

Please sign in to comment.