Skip to content

Commit

Permalink
adding CI tests to the github action and delaying the caching of opam…
Browse files Browse the repository at this point in the history
… until after the install of dependencies (of cerberus-lib)
  • Loading branch information
kmemarian committed Jul 1, 2023
1 parent 87f8e09 commit c8e30e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
pull_request: {}
# pull_request: {}

jobs:
build:
Expand Down Expand Up @@ -32,6 +32,7 @@ jobs:
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
run: |
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}
opam install --deps-only ./cerberus-lib.opam
- name: Save cached opam
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
Expand All @@ -46,10 +47,9 @@ jobs:
eval $(opam env)
opam pin --yes --no-action add cerberus-lib .
opam pin --yes --no-action add cerberus .
opam install --yes cerberus-lib
opam install --yes cerberus
opam install --yes cerberus
# - name: Test Cerberus
# run: |
# eval $(opam env)
# cd tests; ./run-ci.sh
- name: Run Cerberus CI tests
run: |
eval $(opam env)
cd tests; USE_OPAM='' ./run-ci.sh

0 comments on commit c8e30e8

Please sign in to comment.