Skip to content

Commit 3700325

Browse files
committed
ci: Better handling of github actions
1 parent 6812d47 commit 3700325

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/branches.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
CI: true
3434
- run: yarn build
3535
working-directory: ./webpack
36-
- run: 'echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns'
36+
- run: yarn setup-github-actions
37+
working-directory: ./webpack
3738
- run: yarn test
3839
working-directory: ./webpack
3940
- run: yarn build

.github/workflows/master.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
CI: true
3232
- run: yarn build
3333
working-directory: ./webpack
34-
- run: 'echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns'
34+
- run: yarn setup-github-actions
35+
working-directory: ./webpack
3536
- run: yarn test
3637
working-directory: ./webpack
3738
- run: yarn build

webpack/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"scripts": {
77
"build": "webpack",
8+
"setup-github-actions": "echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns",
89
"test": "node test/browser.js",
910
"build-test": "yarn build && yarn test"
1011
},

0 commit comments

Comments
 (0)