Allow real Echidna publishing runs from workflow_dispatch (#1850) #241
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI for interpreter & tests | |
on: | |
push: | |
branches: [ main ] | |
paths: [ .github/**, interpreter/**, test/** ] | |
pull_request: | |
branches: [ main ] | |
paths: [ .github/**, interpreter/**, test/** ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
interpreter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup OCaml | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: 4.14.x | |
- name: Setup OCaml tools | |
run: opam install --yes ocamlfind.1.9.5 js_of_ocaml.4.0.0 js_of_ocaml-ppx.4.0.0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 19.x | |
- name: Build interpreter | |
run: cd interpreter && opam exec make | |
- name: Run tests | |
run: cd interpreter && opam exec make JS=node ci |