Skip to content

Commit d196a30

Browse files
committed
ci: opam install and run jest tests
1 parent 8571c42 commit d196a30

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,43 @@ jobs:
7272
- run: npm ci
7373
- run: npm run build
7474
- run: npm test
75+
76+
build-melange:
77+
strategy:
78+
fail-fast: false
79+
matrix:
80+
os:
81+
- ubuntu-latest
82+
node-version:
83+
- 16.x
84+
ocaml-compiler:
85+
- 4.14.x
86+
87+
runs-on: ${{ matrix.os }}
88+
89+
steps:
90+
- uses: actions/checkout@v3
91+
92+
- name: Use Node.js ${{ matrix.node-version }}
93+
uses: actions/setup-node@v3
94+
with:
95+
node-version: ${{ matrix.node-version }}
96+
cache: 'npm'
97+
98+
- run: npm ci
99+
100+
- name: Use OCaml ${{ matrix.ocaml-compiler }}
101+
uses: ocaml/setup-ocaml@v2
102+
with:
103+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
104+
opam-pin: false
105+
opam-depext: false
106+
cache-prefix: v2
107+
108+
- working-directory: js
109+
run: |
110+
opam pin -y -n melange-jest git+https://github.com/melange-community/melange-jest.git
111+
opam pin -y -n melange-webapi git+https://github.com/melange-community/melange-webapi.git
112+
113+
- run: opam install ./decoders.opam ./melange-decoders.opam --with-test
114+
- run: npx jest _build/default/__tests__

0 commit comments

Comments
 (0)