Skip to content

Commit e9aa2f4

Browse files
committed
CI stuff for syntax
1 parent 7307006 commit e9aa2f4

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,42 @@ jobs:
4545
with:
4646
node-version: 16
4747

48+
# grep: out of memory
49+
# /Users/ostera/rescript-org-actions-runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 66: echo: write error: Broken pipe
50+
# Error: Process completed with exit code 1.
51+
# - name: "Check if syntax subfolder has changed"
52+
# id: syntax-changed
53+
# uses: tj-actions/changed-files@v34
54+
# with:
55+
# files: syntax/**
56+
57+
# - name: List all changed files
58+
# shell: bash
59+
# run: |
60+
# for file in ${{ steps.syntax-changed.outputs.all_changed_files }}; do
61+
# echo "$file was changed"
62+
# done
63+
64+
- name: "Syntax: install OPAM dependencies"
65+
run: opam install . --deps-only
66+
working-directory: syntax
67+
68+
- name: "Syntax: build CLI"
69+
run: opam exec -- dune build
70+
working-directory: syntax
71+
72+
- name: "Syntax: Run roundtrip tests"
73+
if: runner.os != 'Windows'
74+
# if: ${{ runner.os != 'Windows' && steps.syntax-changed-specific.outputs.any_changed == 'true' }}
75+
run: opam exec -- make roundtrip-test
76+
working-directory: syntax
77+
78+
- name: "Syntax: Run tests (Windows)"
79+
if: runner.os == 'Windows'
80+
# if: ${{ runner.os == 'Windows' && steps.syntax-changed-specific.outputs.any_changed == 'true' }}
81+
run: opam exec -- make test
82+
working-directory: syntax
83+
4884
# Required for ninja build
4985
- name: "Windows: Use MSVC"
5086
if: runner.os == 'Windows'

dune

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(dirs jscomp)
1+
(dirs jscomp syntax)

0 commit comments

Comments
 (0)