Skip to content

Commit

Permalink
Attempt to fix CI permission issues
Browse files Browse the repository at this point in the history
`learn-ocaml build` now requires write access to the repository since it writes
compilation artefacts in-place.
  • Loading branch information
AltGr committed Apr 22, 2022
1 parent d5e7061 commit d348acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: actions/checkout@v2
- name: Build Docker images
run: "make docker-images"
- name: Fix permissions
run: "chmod -R a+wX demo-repository"
- name: Run learn-ocaml build on demo-repository
run: "docker run --rm -v $(pwd)/demo-repository:/repository learn-ocaml -- build"
- name: Clone learn-ocaml-corpus inside tests/corpuses
Expand Down
1 change: 1 addition & 0 deletions tests/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ wait_for_it () {
run_server () {
SYNC="$srcdir"/"$dir"/sync
REPO="$srcdir"/"$dir"/repo
chmod -R a+w "$REPO"

mkdir "$SYNC" 2>/dev/null
chmod o+w "$SYNC"
Expand Down

0 comments on commit d348acb

Please sign in to comment.