-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (35 loc) · 1.14 KB
/
run-tests.yml
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
name: Run tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
run-tests:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: facebook/install-dotslash@latest
- run: sudo apt-get install opam
if: matrix.os == 'ubuntu'
- run: brew install opam
if: matrix.os == 'macos'
- run: |-
opam init --color=always --compiler=5.1.1 --disable-sandboxing -y
opam install --color=always ocamlfind
opam env | sed -e "s/ export .*//g" -e "s/'//g" -e "s/\;//g" >> $GITHUB_ENV
- run: |-
mkdir -p third-party/ocaml
(cd third-party/ocaml && ln -s "$OPAM_SWITCH_PREFIX" opam)
python3 dromedary.py -s "$(basename $OPAM_SWITCH_PREFIX)" -o third-party/ocaml/BUCK.test
cat third-party/ocaml/BUCK.test
- run: echo "PATH=$(pwd):$PATH" >> $GITHUB_ENV
- run: |-
buck2 run root//test:version
cat $(buck2 build root//test:config --show-full-simple-output)