Skip to content

Commit

Permalink
ci: opam install and run jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
actionshrimp committed Aug 20, 2023
1 parent 8571c42 commit 4d84137
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,42 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm test

build-melange:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node-version:
- 16.x
ocaml-compiler:
- 4.14.x

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm ci

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-pin: false
opam-depext: false
cache-prefix: v2

- run: |
opam pin -y -n melange-jest git+https://github.com/melange-community/melange-jest.git
opam pin -y -n melange-webapi git+https://github.com/melange-community/melange-webapi.git
- run: opam install ./decoders.opam ./melange-decoders.opam --with-test
- run: npx jest _build/default/__tests__

0 comments on commit 4d84137

Please sign in to comment.