Update run-tests.sh #20
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: Ash Parser Tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v3 | |
| - name: Install Flex, Bison, and GCC | |
| run: sudo apt-get update && sudo apt-get install -y flex bison build-essential libfl-dev | |
| - name: Build Ash parser | |
| working-directory: ./analysis | |
| run: | | |
| bison -d parser.y | |
| flex tokens.l | |
| gcc -o ash parser.tab.c lex.yy.c main.c -lfl | |
| - name: Run test suite | |
| working-directory: ./analysis/tests | |
| run: | | |
| chmod +x run-tests.sh | |
| ./run-tests.sh |