Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Always run the syntax tests
  • Loading branch information
cknitt committed Oct 7, 2024
commit 6dbd99a49e0405affd72efcd0a9b2e40548d81a2
16 changes: 2 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2 # to be able to check for changes in subfolder compiler/syntax later

- name: Use Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -297,22 +295,12 @@ jobs:
if: steps.ninja-build-cache.outputs.cache-hit != 'true'
run: node ./scripts/copyExes.js -ninja

- name: "Check if syntax subfolder has changed"
id: syntax-diff
shell: bash
run: |
if git diff --name-only --exit-code HEAD^ HEAD -- compiler/syntax; then
echo "syntax_status=unchanged" >> $GITHUB_ENV
else
echo "syntax_status=changed" >> $GITHUB_ENV
fi

- name: "Syntax: Run roundtrip tests"
if: ${{ env.syntax_status == 'changed' && runner.os != 'Windows' }}
if: ${{ runner.os != 'Windows' }}
run: opam exec -- make test-syntax-roundtrip

- name: "Syntax: Run tests (Windows)"
if: ${{ env.syntax_status == 'changed' && runner.os == 'Windows' }}
if: ${{ runner.os == 'Windows' }}
run: opam exec -- make test-syntax

- name: Build runtime/stdlib
Expand Down