Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run tests on GitHub Actions #305

Merged
merged 3 commits into from
Jan 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dist fonts
uses: actions/cache@v2
env:
cache-name: cache-dist-fonts
with:
path: lib-satysfi/dist/fonts
key: ${{ env.cache-name }}-${{ hashFiles('download-fonts.sh') }}

- name: Determine the default OPAM Repo
id: determine-default-opam-repo
# See https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#runner-context
Expand Down Expand Up @@ -51,3 +59,20 @@ jobs:

- name: Build SATySFi
run: opam exec -- make all

- name: Run tests
run: |
opam exec -- dune runtest

- name: Install SATySFi
run: |
opam install -y .
if [ -z "$(ls lib-satysfi/dist/fonts)" ]; then
./download-fonts.sh
fi
./install-libs.sh ~/.satysfi

- name: Build demo docs
run: |
(cd demo; opam exec -- make)
(cd doc; opam exec -- make)