Skip to content

Commit ddcf85c

Browse files
committed
Add schedule, setp nodejs
1 parent b407a57 commit ddcf85c

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/workflow.yml

+8-16
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,25 @@ name: Main workflow
33
on:
44
- pull_request
55
- push
6+
- schedule:
7+
- cron: '0 0 * * 0' # At 00:00 UTC every Sunday
68

79
jobs:
810
build:
911
strategy:
1012
fail-fast: false
1113
matrix:
1214
os:
13-
- macos-latest
1415
- ubuntu-latest
15-
- windows-latest
16+
node-version:
17+
- 20.x
1618
ocaml-compiler:
1719
- 5.2.x
1820
- 4.12.x
1921
- 4.11.x
2022
- 4.10.x
2123
- 4.09.x
2224
- 4.08.x
23-
exclude:
24-
- os: macos-latest
25-
ocaml-compiler: 4.11.x
26-
- os: macos-latest
27-
ocaml-compiler: 4.09.x
28-
- os: macos-latest
29-
ocaml-compiler: 4.08.x
30-
- os: windows-latest
31-
ocaml-compiler: 5.2.x
3225

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

@@ -44,11 +37,10 @@ jobs:
4437
opam-pin: false
4538
opam-depext: false
4639

47-
- name: Ensure Node.js is installed (Ubuntu only)
48-
if: matrix.os == 'ubuntu-latest'
49-
run: |
50-
sudo apt-get install -y nodejs
51-
node --version
40+
- name: Use Node.js ${{ matrix.node-version }}
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: ${{ matrix.node-version }}
5244

5345
- run: opam pin add -ny .
5446

tests/js/dune

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
(libraries landmark))
55

66
(rule
7-
(enabled_if (= %{ocaml-config:system} linux))
87
(deps ./test.bc.js)
98
(target test.out)
109
(action
@@ -16,9 +15,6 @@
1615

1716
(rule
1817
(alias runtest)
19-
(enabled_if
20-
(and
21-
(>= %{ocaml_version} "4.04")
22-
(= %{ocaml-config:system} linux)))
18+
(enabled_if (>= %{ocaml_version} "4.04"))
2319
(action
2420
(diff test.out.expected test.out)))

0 commit comments

Comments
 (0)