Refactor error handling in parser and semantic analyzer #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/test.yml' | |
| - 'firescript/**' | |
| - 'tests/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/test.yml' | |
| - 'firescript/**' | |
| - 'tests/**' | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install GCC and dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc build-essential libgmp-dev libmpfr-dev | |
| - name: Set up MSYS2 with GCC and dependencies (Windows) | |
| if: runner.os == 'Windows' | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: MINGW64 | |
| update: true | |
| install: mingw-w64-x86_64-gcc mingw-w64-x86_64-gmp mingw-w64-x86_64-mpfr | |
| path-type: inherit | |
| release: false | |
| - name: Add MinGW64 to PATH (Windows) | |
| if: runner.os == 'Windows' | |
| run: echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH | |
| - name: Verify GCC installation | |
| run: gcc --version | |
| - name: Run golden tests | |
| run: python tests/golden_runner.py |