Skip to content

Commit fa2cd23

Browse files
committed
fix(ci): Fix permission issues
`learn-ocaml build` now requires write access to the repository since it writes compilation artefacts in-place.
1 parent 466e80c commit fa2cd23

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
uses: actions/checkout@v3
2222
- name: Build Docker images
2323
run: "make docker-images"
24+
- name: Fix permissions
25+
run: "chmod -R a+wX demo-repository"
2426
- name: Run learn-ocaml build on demo-repository
2527
run: "docker run --rm -v $(pwd)/demo-repository:/repository learn-ocaml -- build"
2628
- name: Clone learn-ocaml-corpus inside tests/corpuses

tests/runtests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ wait_for_it () {
6767
run_server () {
6868
SYNC="$srcdir"/"$dir"/sync
6969
REPO="$srcdir"/"$dir"/repo
70+
chmod -R a+w "$REPO"
7071

7172
mkdir "$SYNC" 2>/dev/null
7273
chmod o+w "$SYNC"

0 commit comments

Comments
 (0)