Skip to content

Merge pull request #294 from samoht/merlint-hook-and-exclusions #807

Merge pull request #294 from samoht/merlint-hook-and-exclusions

Merge pull request #294 from samoht/merlint-hook-and-exclusions #807

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
name: OCaml ${{ matrix.ocaml-compiler }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ocaml-compiler:
- "5.2"
- "5.4"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Tailwind CLI for example comparisons
# Exact versions come from package-lock.json: the examples are
# byte-compared against this Tailwind release, and a different one
# shifts output (units, calc folding, palette rounding).
run: npm ci
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
# tw and cascade are developed together, so CI tracks cascade's main
# rather than its last opam release. Drop this once a release carries
# what tw needs.
- name: Pin cascade to main
run: opam pin add -n cascade https://github.com/samoht/cascade.git#main
- name: Install dependencies
run: opam install . --deps-only --with-test -y
- name: Build
run: opam exec -- dune build
- name: Test
run: opam exec -- dune runtest