-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.41 KB
/
Copy pathtest.yml
File metadata and controls
48 lines (41 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests
on:
push:
branches: [ lwt, test-suite ]
pull_request:
branches: [ lwt ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5.1.1
dune-cache: true
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y npm xz-utils libomp-dev llvm-dev
opam install . --deps-only --update-invariant
npm install --no-save typescript browserify pug-lexer pug-parser pug-walk
- name: Install QuickJS
run: |
curl -fsSL https://bellard.org/quickjs/quickjs-2021-03-27.tar.xz -o quickjs.tar.xz
tar xvf quickjs.tar.xz && rm quickjs.tar.xz
mv quickjs-2021-03-27 quickjs
cd quickjs && make
- name: Install Flow
run: |
git clone --branch v0.183.1 --depth 1 https://github.com/facebook/flow.git flow
ln -s "$(pwd)/flow/src/parser" src/flow_parser
ln -s "$(pwd)/flow/src/third-party/sedlex" src/sedlex
ln -s "$(pwd)/flow/src/hack_forked/utils/collections" src/collections
- name: Run tests
run: |
mkdir -p strings
opam exec -- dune runtest tests/