Add colours to output normal and refactored code #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install, test and format | |
on: | |
pull_request: | |
branches: | |
- "main" | |
permissions: read-all | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
ocaml-compiler: | |
- "5.1" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set-up OCaml version:${{ matrix.ocaml-compiler }} in os:${{ matrix.os }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
- name: Install Dependencies | |
run: | | |
opam install --deps-only -t -y . | |
opam install ocamlformat.0.26.1 | |
- name: Test | |
run: opam exec -- dune runtest | |
- name: Format | |
run: opam exec -- dune build @fmt |