Skip to content

Commit

Permalink
add rescript-syntax test to melange package
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Apr 11, 2023
1 parent ff9a0c5 commit e2073f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/opam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
opam update
make opam-install-test
- name: Run tests
working-directory: melange
run: make test

- name: Clone melange-opam-template
run: |
git clone https://github.com/melange-re/melange-opam-template.git
Expand Down
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ dev:

.PHONY: test
test:
opam exec -- dune runtest -p melange,reactjs-jsx-ppx
# rescript-syntax tests temporarily disabled, see https://github.com/ocaml/dune/pull/7220
# opam exec -- dune runtest -p rescript-syntax
opam exec -- dune runtest -p melange,reactjs-jsx-ppx,rescript-syntax

.PHONY: opam-create-switch
opam-create-switch: ## Create opam switch
Expand All @@ -33,8 +31,8 @@ opam-create-switch: ## Create opam switch
opam-install-test: ## Install test dependencies
opam pin -y add dune.dev https://github.com/ocaml/dune.git#258058c6803525261df9d330d9eca2a4b0a8adc2
opam pin -y add melange-compiler-libs.dev https://github.com/melange-re/melange-compiler-libs.git#7263bea2285499f5da857f2bb374345a5178791e
opam pin add reactjs-jsx-ppx.dev . --with-test -y
opam pin add melange.dev . --with-test -y
opam pin add reactjs-jsx-ppx.dev . -y #--with-test temporarily disabled, see https://github.com/ocaml/dune/pull/7220
opam pin add melange.dev . -y #--with-test temporarily disabled, see https://github.com/ocaml/dune/pull/7220
opam pin add mel.dev . --with-test -y
opam pin add rescript-syntax.dev . -y #--with-test temporarily disabled, see https://github.com/ocaml/dune/pull/7220

Expand Down
9 changes: 1 addition & 8 deletions test/dune
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
(cram
(package melange)
(applies_to * \ gh489)
(deps
(env_var MELANGE_LIB)
setup.sh
(package melange)
(package reactjs-jsx-ppx)))

(cram
(package rescript-syntax)
(applies_to gh489)
(deps
(package melange)
(package reactjs-jsx-ppx)
(package rescript-syntax)))

0 comments on commit e2073f8

Please sign in to comment.