Skip to content

Commit 2e09019

Browse files
authored
fix(rakkas): disable apparmor restrictions on GitHub Actions for now (#350)
1 parent f962520 commit 2e09019

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/rakkas.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
import { runInRepo } from '../utils.ts'
22
import type { RunOptions } from '../types.d.ts'
3+
import { execSync } from 'node:child_process'
34

45
export async function test(options: RunOptions) {
56
await runInRepo({
67
...options,
78
repo: 'rakkasjs/rakkasjs',
89
branch: 'main',
910
build: 'build',
11+
// This is needed to run puppeteer in Ubuntu 23+
12+
// https://github.com/puppeteer/puppeteer/pull/13196
13+
beforeTest: process.env.GITHUB_ACTIONS
14+
? async () => {
15+
execSync(
16+
'echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns',
17+
)
18+
}
19+
: undefined,
1020
test: 'vite-ecosystem-ci',
1121
})
1222
}

0 commit comments

Comments
 (0)