Skip to content

Commit

Permalink
chore: ⚙️ adding syntax-format check as part of test cycle
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Aurélio da Silva <marcoonroad@gmail.com>
  • Loading branch information
marcoonroad committed Dec 26, 2020
1 parent af96d35 commit 382479e
Show file tree
Hide file tree
Showing 45 changed files with 294 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage-report.yml
Expand Up @@ -35,6 +35,6 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}
- run: opam install ocamlformat.0.15.1 --yes
- run: opam install ocamlformat --yes
- run: opam exec -- dune build @fmt
- run: opam exec -- dune runtest
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -8,7 +8,7 @@ build:

.PHONY: dev-deps
dev-deps:
@ opam install ocamlformat.0.15.1 odoc merlin utop ocp-indent --yes
@ opam install ocamlformat odoc merlin utop ocp-indent --yes

.PHONY: deps
deps:
Expand Down Expand Up @@ -58,10 +58,10 @@ format:
@ opam install ocamlformat --yes
@ dune build @fmt --auto-promote || echo "\nSource code rewritten by format.\n"

quick-test: build
quick-test: build lint
@ ALCOTEST_QUICK_TESTS=1 dune runtest

test: build
test: build lint
@ dune runtest --no-buffer -f -j 1

.PHONY: docs-index
Expand Down

0 comments on commit 382479e

Please sign in to comment.