Skip to content

Commit 098adb8

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,30 @@ jobs:
7272
- run: npm ci
7373
- run: npm run build
7474
- run: npm test
75+
76+
steps:
77+
- uses: actions/checkout@v3
78+
79+
- name: Use Node.js ${{ matrix.node-version }}
80+
uses: actions/setup-node@v3
81+
with:
82+
node-version: ${{ matrix.node-version }}
83+
cache: 'npm'
84+
85+
- run: npm ci
86+
87+
- name: Use OCaml ${{ matrix.ocaml-compiler }}
88+
uses: ocaml/setup-ocaml@v2
89+
with:
90+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
91+
opam-pin: false
92+
opam-depext: false
93+
cache-prefix: v2
94+
95+
- working-directory: js
96+
run: |
97+
opam pin -y -n melange-jest git+https://github.com/melange-community/melange-jest.git
98+
opam pin -y -n melange-webapi git+https://github.com/melange-community/melange-webapi.git
99+
100+
- run: opam install ./decoders.opam ./melange-decoders.opam --with-test
101+
- run: npx jest _build/default/__tests__

0 commit comments

Comments
 (0)