Skip to content

Commit

Permalink
GitHub workflow: fix caching
Browse files Browse the repository at this point in the history
This splits the workflow into two jobs so that, even if the test fails,
we still cache the .opam directory
  • Loading branch information
alastairreid committed Jan 7, 2025
1 parent 3b7de26 commit cb25e0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
OPAMROOT: ${{ github.workspace }}/.opam

jobs:
test:
setup:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -52,6 +52,9 @@ jobs:
opam env
opam install . --deps-only --with-test --with-doc --yes
test:
needs: setup
steps:
- name: Build
run: |
eval $(opam env)
Expand Down

0 comments on commit cb25e0b

Please sign in to comment.