Feat: GitHub actions and tests #2
Workflow file for this run
This file contains 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: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y flex bison libfl-dev | |
- name: Build the executable | |
run: | | |
make bin/tula-test | |
working-directory: ${{ github.workspace }} | |
- name: Run tests | |
run: | | |
echo "Running tests..." | |
./bin/tula-test ./examples/increment.tula | |
working-directory: ${{ github.workspace }} | |
- name: Clean up | |
run: make clean | |
working-directory: ${{ github.workspace }} | |