Skip to content

Commit

Permalink
fix: Workaround ocaml-sf/learn-ocaml#305
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmd committed Jul 21, 2023
1 parent ad801ad commit 229517a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Create directory www
run: |
mkdir -m 755 www
if [ "${{ matrix.server_image }}" = "ocamlsf/learn-ocaml:0.12" ]; then
# Workaround https://github.com/ocaml-sf/learn-ocaml/issues/305 for learn-ocaml 0.12
find exercises -type d -mindepth 1 -exec bash -c 'mkdir -p -m 755 "www/${1/exercises/static}"' bash "{}" \;
fi
sudo chown -R 1000:1000 www
- name: Run learn-ocaml on the corpus
run: 'docker run --rm -v "$PWD":/repository ${{ matrix.server_image }} build'
run: 'docker run --rm -v "$PWD:/repository" -v "$PWD/www:/home/learn-ocaml/www" ${{ matrix.server_image }} build'

0 comments on commit 229517a

Please sign in to comment.